Skip to content
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

Error with Fetch returning 204 No Content response #122

Closed
izdatyi opened this issue Aug 7, 2024 · 3 comments
Closed

Error with Fetch returning 204 No Content response #122

izdatyi opened this issue Aug 7, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@izdatyi
Copy link

izdatyi commented Aug 7, 2024

Hi!
Testing with fetch example
Just change for example: (reqres.in)

r, err := fetch.NewRequest(req.Context(), http.MethodDelete, "https://reqres.in/api/users/1", nil)

Get an error

panic: syscall/js: call of Value.Call on null
X [ERROR] A hanging Promise was canceled. This happens when the worker runtime is waiting for a Promise from JavaScript to resolve, but has detected that the Promise cannot possibly ever resolve because all code and events related to the Promise's I/O context have already finished.

[wrangler:inf] GET / 500 Internal Server Error (252ms)                                    
X [ERROR] Uncaught (in response) Error: The script will never generate a response.

Also checked with the GitHub API

@syumai
Copy link
Owner

syumai commented Aug 8, 2024

I'll try to fix this, thanks!

@syumai
Copy link
Owner

syumai commented Aug 11, 2024

@izdatyi This issue was probably fixed in #124, so I've released it as v0.26.3.
Please try it later.

@syumai syumai added the bug Something isn't working label Aug 11, 2024
@izdatyi
Copy link
Author

izdatyi commented Aug 11, 2024

Works as expected.
Thank you for the quick fix!

@syumai syumai closed this as completed Aug 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants