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

bouncer: Error when no signature header sent #212

Open
brettski opened this issue Mar 31, 2023 · 0 comments
Open

bouncer: Error when no signature header sent #212

brettski opened this issue Mar 31, 2023 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@brettski
Copy link
Contributor

When no signature header the application errors due to sending response headers a second time. Check error path and error path responses.

errorHandler unknown error: Cannot set headers after they are sent to the client
Sentry Logger [log]: SDK not enabled, will not capture event.
Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client
    at new NodeError (node:internal/errors:372:5)
    at ServerResponse.setHeader (node:_http_outgoing:576:11)
    at ServerResponse.header (/Users/brettski/tc/that-api-functions/functions/bouncer/node_modules/express/lib/response.js:794:10)
    at ServerResponse.send (/Users/brettski/tc/that-api-functions/functions/bouncer/node_modules/express/lib/response.js:174:12)
    at ServerResponse.json (/Users/brettski/tc/that-api-functions/functions/bouncer/node_modules/express/lib/response.js:278:15)
    at errorHandler (/Users/brettski/tc/that-api-functions/functions/bouncer/__build__/middleware/errorHandler.js:15:28)
    at Layer.handle_error (/Users/brettski/tc/that-api-functions/functions/bouncer/node_modules/express/lib/router/layer.js:71:5)
    at trim_prefix (/Users/brettski/tc/that-api-functions/functions/bouncer/node_modules/express/lib/router/index.js:326:13)
    at /Users/brettski/tc/that-api-functions/functions/bouncer/node_modules/express/lib/router/index.js:286:9
    at Function.process_params (/Users/brettski/tc/that-api-functions/functions/bouncer/node_modules/express/lib/router/index.js:346:12)
@brettski brettski added the bug Something isn't working label Mar 31, 2023
@brettski brettski self-assigned this Mar 31, 2023
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