Skip to content

Can't set headers after they are sent.] Error: Can't set headers after they are sent. 2.2.18 #2580

Closed
@gateway

Description

@gateway

Please read the following instructions carefully.

Check out #1271 for an ideal bug report.
The closer your issue report is to that one, the more likely we are to be able to help, and the more likely we will be to fix the issue quickly!

Many members of the community use Stack Overflow and Server Fault to ask questions.
Read through the existing questions or ask your own!

For database migration help, please file a bug report at https://parse.com/help#report

Make sure these boxes are checked before submitting your issue -- thanks for reporting issues back to Parse Server!

Issue Description

While looking into a cloud code issue which I fixed, I saw this issue in my Heroku logs and Parse Dashboard logs.. I have no idea what this could be but doesnt sound to good.

Not sure how to debug this, but needed to provide this to the community.

I should note rolling back to 2.2.17 this does not happen.. :/

2016-08-24T18:17:46.973Z - Uncaught internal server error. [Error: Can't set headers after they are sent.] Error: Can't set headers after they are sent.
    at ServerResponse.OutgoingMessage.setHeader (_http_outgoing.js:346:11)
    at ServerResponse.header (/app/node_modules/express/lib/response.js:695:10)
    at allowCrossDomain (/app/node_modules/parse-server/lib/middlewares.js:229:7)
    at Layer.handle [as handle_request] (/app/node_modules/parse-server/node_modules/express/lib/router/layer.js:95:5)
    at next (/app/node_modules/parse-server/node_modules/express/lib/router/route.js:131:13)
    at Route.dispatch (/app/node_modules/parse-server/node_modules/express/lib/router/route.js:112:3)
    at Layer.handle [as handle_request] (/app/node_modules/parse-server/node_modules/express/lib/router/layer.js:95:5)
    at /app/node_modules/parse-server/node_modules/express/lib/router/index.js:277:22
    at param (/app/node_modules/parse-server/node_modules/express/lib/router/index.js:349:14)
    at param (/app/node_modules/parse-server/node_modules/express/lib/router/index.js:365:14)

Environment Setup

  • Server
    • parse-server version (Be specific! Don't say 'latest'.) : 2.2.18
    • Operating System: Heroku Dyno
    • Hardware: Heroku Dyno
    • Localhost or remote server? (AWS, Heroku, Azure, Digital Ocean, etc): Heroku Dyno
  • Database
    • MongoDB version: 3.2
    • Storage engine: WiredTiger
    • Hardware: M1 Cluster
    • Localhost or remote server? (AWS, mLab, ObjectRocket, Digital Ocean, etc): Heroku

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions