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

Latest uWs not working #680

Open
joacub opened this issue May 22, 2023 · 5 comments
Open

Latest uWs not working #680

joacub opened this issue May 22, 2023 · 5 comments
Labels
bug Something isn't working

Comments

@joacub
Copy link

joacub commented May 22, 2023

Error: Using uWS.HttpRequest / uWS.Http3Request past its request handler return is forbidden (it is stack allocated).
at callback (/app/node_modules/.pnpm/engine.io@6.4.2/node_modules/engine.io/build/userver.js:157:20)

@joacub joacub added the bug Something isn't working label May 22, 2023
@joacub
Copy link
Author

joacub commented May 22, 2023

this is the issue,

transport = await this.handshake(
          req._query.transport,
          req,
          (errorCode, errorContext) =>
            this.abortRequest(res, errorCode, errorContext)
        );
        if (!transport) {
          return;
        }

you can not await and use httprequest after that

@joacub
Copy link
Author

joacub commented May 22, 2023

@joacub
Copy link
Author

joacub commented May 22, 2023

we already have see what is the issue on this, the new alien mode is not allowing you to access the getHeader function, so you should cache them for later uses.

there is other issues in here about this mode.

@joacub
Copy link
Author

joacub commented May 22, 2023

pull request:

#681

@darrachequesne
Copy link
Member

I'm looking into this.

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