-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Run next() after successfully sending data to the client #2338
Conversation
This allows developers to add express handlers for successful completion of parse-server requests. ie Analytics or Logging.
We are getting following errors from this pull at Layer.handle as handle_request Not sure what we are doing wrong. If we make any cloud function calls we get the error. We have remove our app.js require in our main.js code to test if a module, express code is causing issue. This did not change anything. |
Yeah, this needs to be revisited. It appears to have caused errors in Cloud Code method calls for a large number of us, even when they are no issues with the call and it returns the right data. @blacha Could you please take a look? When I revert your change in my local repo, it's fine. |
@sprabs When running this locally and in production across a bunch of different cloud functions I have no issues at all. What sort of system setup do you use? That error generally implies something else has been run after data has been sent back to the client. If you have a setup express yourself make sure you don't have any Another option would be if you have code that runs both
|
Yes, I'm seeing the same issue as @tillifywebb -- It appears that after a call to |
I tired removing the express setup - and I still got the error, that was on nodechef just running a simple SP that queries the DB, we have since rolled back as it was causing issues. |
…nity#2338) This allows developers to add express handlers for successful completion of parse-server requests. ie Analytics or Logging.
…nity#2338) This allows developers to add express handlers for successful completion of parse-server requests. ie Analytics or Logging.
This allows developers to add express handlers for successful completion of parse-server requests.
ie Analytics or Logging.