parse-server: Http Headers related error with code pulled.
We pulled parse-server code from master yesterday and while using that code, we notice the following stack trace in log for all the cloud calls being made. Anyone else seeing this? Also, any suggestions, tips for resolving this are appreciated. Thank you.
Error: Can't set headers after they are sent.
at ServerResponse.OutgoingMessage.setHeader (_http_outgoing.js:344:11)
at /var/app/current/node_modules/express/lib/application.js:153:9
at /var/app/current/node_modules/express/lib/router/index.js:137:5
at /var/app/current/node_modules/express/lib/router/index.js:250:10
at next (/var/app/current/node_modules/express/lib/router/index.js:160:14)
at next (/var/app/current/node_modules/express/lib/router/index.js:176:38)
at Immediate.<anonymous> (/var/app/current/node_modules/express/lib/application.js:190:9)
at Immediate.<anonymous> (/var/app/current/node_modules/parse-server/node_modules/express/lib/router/index.js:618:15)
at Immediate.immediate._onImmediate (timers.js:435:18)
at processImmediate [as _immediateCallback] (timers.js:383:17)
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Reactions: 2
- Comments: 69 (28 by maintainers)
Ok, thanks.
Just to inform, the error still occurs in master (same code, same error)
For me, upgrading express fixed the issue. From “express”: “~4.2.x” to “express”: “=4.14.0”
@j-koenig this should be fixed by the latest release as well
@hchu0701 this specific error will be fixed in the next release
@sprabs I updated your comment to have formatting (So it is easier for me to read)
Ill try and reproduce your issue from my local instance today.