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

Parse Server 3.x Parse.Cloud.httpRequest no longer able to send body for GET request #6361

Closed
asdf01 opened this issue Jan 24, 2020 · 2 comments
Labels
type:bug Impaired feature or lacking behavior that is likely assumed

Comments

@asdf01
Copy link

asdf01 commented Jan 24, 2020

The httpRequest class no longer seems to be able to do a GET with a request body anymore. It looks like the library used to do the http request has been completely changed in Parse Server 3.x.

The parse server classes api allows specification of a where condition for the GET http method. This no longer seems to work in Parse Server 3.10.0.

This curl is a simulation for what the GET request should do:

curl -X GET  -H "Content-Type: application/json" https://postman-echo.com/get -d "{\"where\": {\"testField01\": \"testValue01\"}}"

Result:

{"args":{"where":{"testField01":"testValue01"}},"headers":{"x-forwarded-proto":"https","host":"postman-echo.com","content-length":"41","accept":"*/*","content-type":"application/json","user-agent":"curl/7.55.1","x-forwarded-port":"443"},"url":"https://postman-echo.com/get"}

But the equivalent Parse.Cloud.httpRequest call would not have anything in the "args" field.

Thanks

@asdf01 asdf01 changed the title Parse Server 3.x Parse.Cloud.httpRequest no longer able to sent body for GET request Parse Server 3.x Parse.Cloud.httpRequest no longer able to send body for GET request Jan 24, 2020
@davimacedo
Copy link
Member

Thanks for reporting. Could you please write a failing test case?

@dplewis
Copy link
Member

dplewis commented Jul 17, 2024

Closing as Parse.Cloud.httpRequest has been deprecated.

@dplewis dplewis closed this as completed Jul 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:bug Impaired feature or lacking behavior that is likely assumed
Projects
None yet
Development

No branches or pull requests

4 participants