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
RequestInit::new() is hanging #41
Comments
Thank you for reporting this. |
It's this line: workers-rs/worker/src/request_init.rs Lines 84 to 88 in 00ce8ce
Request_init::default called Request_init::new which called Request_init::default recursively. |
I hope this will be fixed soon. AFAIK it's impossible to make POST requests without |
@OlegWasHere - I'm aiming to get a release out today which fixes this. However, if you don't need any Cloudflare-specific features for your outbound Request, then I'd try to use another HTTP client crate that works with wasm32 target, such as |
@nilslice Oh, thanks for clarifying! I didn't know that it's possible to use other HTTP clients. And thanks for the fix :) |
Hi!
It seems like something's wrong with RequestInit::new(). Here is the simple code, it creates empty RequestInit and then returns empty response. And it stucks.
And here's the logs from
wrangler dev
:The text was updated successfully, but these errors were encountered: