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 [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client #116

Open
javaallah opened this issue Oct 31, 2018 · 1 comment

Comments

@javaallah
Copy link

Hello guys!

When creating a user and then having him to login I got this error:


[dev.start] POST /api/users/login 200 207.582 ms - 198
[dev.start]   APIError: Not Found!
[dev.start]
[dev.start]   - error.js?:25 new ExtendableError
[dev.start]     webpack:///./src/services/error.js?:25:11
[dev.start]
[dev.start]   - error.js?:43 new APIError
[dev.start]     webpack:///./src/services/error.js?:43:5
[dev.start]
[dev.start]   - index.js?:52 routes.all
[dev.start]     webpack:///./src/routes/index.js?:52:42
[dev.start]
[dev.start]
[dev.start] Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client
[dev.start]     at validateHeader (_http_outgoing.js:503:11)

Any ideas what's wrong?

@flexscss
Copy link

@javaallah In Authentication controller in login function delete return next() or set return true

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