-
Couldn't load subscription status.
- Fork 1.5k
wasi-http: Migrate to more descriptive error variant #7434
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
wasi-http: Migrate to more descriptive error variant #7434
Conversation
84c6b44 to
89f1876
Compare
| // TODO: maybe anything that appears in the Result<_, E> position should impl | ||
| // Error? anyway, just use its Debug here: | ||
| .map_err(|e| anyhow!("{e:?}"))?; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was preventing downcast::<Error>() in test cases.
f113348 to
f088227
Compare
61bd17b to
aebbe78
Compare
aebbe78 to
7af92d0
Compare
|
@pchickey this should be ready to go now. I also folded in the changes to URI construction in the outgoing handler that we discussed today. |
Co-authored-by: Pat Hickey <phickey@fastly.com>
2724b1f to
c1b0290
Compare
prtest:full
69708fe to
ebabc9f
Compare
…e#7434) * Migrate to a more specific error-code variant in wasi-http Co-authored-by: Pat Hickey <phickey@fastly.com> * Optional fields, and align with upstream pr * Update for upstream changes to the error-code variant * Sync with the upstream implementation * Missed updating an error for riscv64 and s390x * More debuggable error prtest:full * Try to stabilize the test on windows --------- Co-authored-by: Pat Hickey <phickey@fastly.com>
* Remove timezone interface from wasi-clocks (#7515) * delete wasi-clocks timezone interface: import wit changes from WebAssembly/wasi-clocks#55 * remove other references to wasi:clocks/timezone in wits * remove todo! implementation of clocks/timezone and add_to_linker funcs * Move the `wasi:io/stream/error` resource into `wasi:io/error` (#7521) * Move the `error` resource into `wasi:io/error` * error.wit: update doc comments * downstream fixes to streams.wit doc comments * fix package name in error.wit --------- Co-authored-by: Trevor Elliott <telliott@fastly.com> * wasi-http: Make child fields immutable (#7524) * Make child fields immutable * Add `get_fields` and remove `FieldMapMutability` Clean up the interface to immutable fields by adding a different accessor. * Clean up the diff * wasi-http: Migrate to more descriptive error variant (#7434) * Migrate to a more specific error-code variant in wasi-http Co-authored-by: Pat Hickey <phickey@fastly.com> * Optional fields, and align with upstream pr * Update for upstream changes to the error-code variant * Sync with the upstream implementation * Missed updating an error for riscv64 and s390x * More debuggable error prtest:full * Try to stabilize the test on windows --------- Co-authored-by: Pat Hickey <phickey@fastly.com> * Remove a debugging eprintln (#7528) * Remove no-longer-necessary reactor world (#7516) The `wasi:cli` WIT package now has a `reactor` world so the adapter can use that instead of defining its own. --------- Co-authored-by: Pat Hickey <phickey@fastly.com> Co-authored-by: Trevor Elliott <telliott@fastly.com>
Integrate the more descriptive error variant present in WebAssembly/wasi-http#52. This PR attempts to port the existing errors we raise directly to the new variant.
Fixes #7248