Skip to content

Parse.Cloud.httpRequest not working on heroku #484

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

Closed
ktmatzdorf opened this issue Feb 18, 2016 · 2 comments
Closed

Parse.Cloud.httpRequest not working on heroku #484

ktmatzdorf opened this issue Feb 18, 2016 · 2 comments

Comments

@ktmatzdorf
Copy link

I am doing a POST request with x-www-url encoded payload to mailchimp in a cloud function via Parse.Cloud.httpRequest.
Might it depend on new Buffer call within the httpRequest file? https://github.com/ParsePlatform/parse-server/blob/master/src/httpRequest.js
Is anyone else experiencing a similar problem?

@flovilmart
Copy link
Contributor

What is not working?

@gfosco gfosco closed this as completed Feb 26, 2016
@ktmatzdorf
Copy link
Author

Sorry for responding late. I think my problem is related to #727 and #703 but to be more precise i got this back:

SyntaxError: Unexpected token c
2016-03-01T08:27:47.049324+00:00 app[web.1]:     at parse (/app/node_modules/body-parser/lib/types/json.js:83:15)
2016-03-01T08:27:47.049325+00:00 app[web.1]:     at /app/node_modules/body-parser/lib/read.js:116:18
2016-03-01T08:27:47.049325+00:00 app[web.1]:     at invokeCallback (/app/node_modules/raw-body/index.js:262:16)
2016-03-01T08:27:47.049326+00:00 app[web.1]:     at done (/app/node_modules/raw-body/index.js:251:7)
2016-03-01T08:27:47.049326+00:00 app[web.1]:     at IncomingMessage.onEnd (/app/node_modules/raw-body/index.js:308:7)

I think it has to do with not using compression by request/and or parse server. I don´t know what express version run on parse but 4.x needs explicitly compression for compressed request and request needs (gzip) enabled manually.

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

No branches or pull requests

3 participants