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 express server crash #2

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

barribarrier
Copy link

express server hard crashes if delta build (in background) throws error

open-balena-delta-delta-1  | [open-balena-delta] V3 delta error: (HTTP code 400) unexpected - invalid reference format 
open-balena-delta-delta-1  | node:internal/errors:496
open-balena-delta-delta-1  |     ErrorCaptureStackTrace(err);
open-balena-delta-delta-1  |     ^
open-balena-delta-delta-1  | 
open-balena-delta-delta-1  | Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client
open-balena-delta-delta-1  |     at new NodeError (node:internal/errors:405:5)
open-balena-delta-delta-1  |     at ServerResponse.setHeader (node:_http_outgoing:648:11)
open-balena-delta-delta-1  |     at ServerResponse.header (/usr/src/app/node_modules/express/lib/response.js:794:10)
open-balena-delta-delta-1  |     at ServerResponse.contentType (/usr/src/app/node_modules/express/lib/response.js:624:15)
open-balena-delta-delta-1  |     at ServerResponse.sendStatus (/usr/src/app/node_modules/express/lib/response.js:373:8)
open-balena-delta-delta-1  |     at /usr/src/app/dist/index.js:315:33
open-balena-delta-delta-1  |     at step (/usr/src/app/dist/index.js:56:23)
open-balena-delta-delta-1  |     at Object.throw (/usr/src/app/dist/index.js:37:53)
open-balena-delta-delta-1  |     at rejected (/usr/src/app/dist/index.js:29:65)
open-balena-delta-delta-1  |     at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
open-balena-delta-delta-1  |   code: 'ERR_HTTP_HEADERS_SENT'
open-balena-delta-delta-1  | }

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

Successfully merging this pull request may close these issues.

2 participants