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

Fix the error during user/profile refresh #12

Closed
makeitcount opened this issue Jun 1, 2022 · 0 comments
Closed

Fix the error during user/profile refresh #12

makeitcount opened this issue Jun 1, 2022 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@makeitcount
Copy link
Owner

How to reproduce - After login, head over to /user/profile, check the server logs, you'll see following error

GET /user/profile 302 17.288 ms - 148
Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client
    at new NodeError (node:internal/errors:371:5)
    at ServerResponse.setHeader (node:_http_outgoing:576:11)
    at ServerResponse.header (/home/johndoe/Projects/supertokens/example/saas-express-starter-kit/node_modules/express/lib/response.js:767:10)
    at ServerResponse.send (/home/johndoe/Projects/supertokens/example/saas-express-starter-kit/node_modules/express/lib/response.js:170:12)
    at done (/home/johndoe/Projects/supertokens/example/saas-express-starter-kit/node_modules/express/lib/response.js:1004:10)
    at tryHandleCache (/home/johndoe/Projects/supertokens/example/saas-express-starter-kit/node_modules/ejs/lib/ejs.js:280:5)
    at View.exports.renderFile [as engine] (/home/johndoe/Projects/supertokens/example/saas-express-starter-kit/node_modules/ejs/lib/ejs.js:491:10)
    at View.render (/home/johndoe/Projects/supertokens/example/saas-express-starter-kit/node_modules/express/lib/view.js:135:8)
    at tryRender (/home/johndoe/Projects/supertokens/example/saas-express-starter-kit/node_modules/express/lib/application.js:640:10)
    at Function.render (/home/johndoe/Projects/supertokens/example/saas-express-starter-kit/node_modules/express/lib/application.js:592:3)
@makeitcount makeitcount self-assigned this Jun 1, 2022
@makeitcount makeitcount added the bug Something isn't working label Jun 1, 2022
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

1 participant