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

ERR_HTTP_HEADER_SENT requesting api/auth/session #3321

Closed
dcorb opened this issue Dec 1, 2021 · 1 comment
Closed

ERR_HTTP_HEADER_SENT requesting api/auth/session #3321

dcorb opened this issue Dec 1, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@dcorb
Copy link

dcorb commented Dec 1, 2021

Description 🐜

From client side, there is a request happening to api/auth/session that fails, making the server to restart

Is this a bug in your own project?

Yes

How to reproduce ☕️

Nothing special (the framework itself is doing the request, when loading any page). I'm not doing request manually

Screenshots / Logs 📽

[01/Dec/2021:13:39:05 +0000] "GET /api/auth/session HTTP/1.1" 304 
_http_outgoing.js:518
 throw new ERR_HTTP_HEADERS_SENT('set');
 ^
Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client

Environment 🖥

next-auth beta 2

Contributing 🙌🏽

Yes, I am willing to help solve this bug in a PR

@dcorb dcorb added the bug Something isn't working label Dec 1, 2021
@balazsorban44
Copy link
Member

please try upgrading, and report back with a reproduction.

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