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

uWS.HttpResponse writes must be made from within a corked callback #5

Open
jaredxx1 opened this issue Mar 18, 2024 · 1 comment
Open

Comments

@jaredxx1
Copy link

Hey,

I can't send body. I'm trying to run a proxy which forwards the requests to an origin server and gets the response back with fetch.

The error is: uWS.HttpResponse writes must be made from within a corked callback. See documentation for uWS.HttpResponse.cork and consult the user manual.

.cork does not exist on the response object as is in the original uWs lib.

Any thoughts?

@gabrielcursino
Copy link
Member

Hello @jaredxx1!

uWS.HttpResponse writes must be made from within a corked callback. See documentation for uWS.HttpResponse.cork is just a warning, it shouldn't stop you from sending body.

Can you provide a reproducible repo?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants