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

Handle 500 error when headers are already sent #1

Closed
niklaswolf opened this issue Mar 16, 2023 · 1 comment
Closed

Handle 500 error when headers are already sent #1

niklaswolf opened this issue Mar 16, 2023 · 1 comment

Comments

@niklaswolf
Copy link
Owner

Error message:

[nuxt] [request error] [unhandled] [500] Cannot set headers after they are sent to the client
at new NodeError (node:internal/errors:400:5)  
  at ServerResponse.setHeader (node:_http_outgoing:663:11)  
  at ./node_modules/nuxt-cache-keys/dist/runtime/plugin.mjs:20:42  
  at ./node_modules/hookable/dist/index.mjs:48:66  
  at Object.run (./node_modules/hookable/dist/index.mjs:41:43)  
  at ./node_modules/hookable/dist/index.mjs:48:56  
  at process.processTicksAndRejections (node:internal/process/task_queues:95:5)  
  at async ./.nuxt/dev/index.mjs:860:3  
  at async ./.nuxt/dev/index.mjs:378:22  
  at async Object.handler (./node_modules/h3/dist/index.mjs:1212:19)
[nitro] [dev] [unhandledRejection] Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client                                                                                                                                               10:20:24
@niklaswolf
Copy link
Owner Author

fixed in version 1.0.2

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

1 participant