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 _Installation route return 400 'HTTP POST METHOD' #1814

Closed
fabuhelow opened this issue May 17, 2016 · 4 comments
Closed

Parse _Installation route return 400 'HTTP POST METHOD' #1814

fabuhelow opened this issue May 17, 2016 · 4 comments

Comments

@fabuhelow
Copy link

Hi,

I have got the following error:

46.32.125.160 - - [17/May/2016:07:03:50 +0000] "POST /parse/classes/_Installation HTTP/1.1" 400 110 "-" "Parse Android SDK 1.13.0 (com.example_ap1.app/21) API Level 18"
91.186.227.228 - - [17/May/2016:07:03:50 +0000] "POST /parse/classes/_Installation HTTP/1.1" 400 110 "-" "Parse Android SDK 1.13.0 (com.example_ap1.app/21) API Level 19"

Any help ?

@drew-gross
Copy link
Contributor

To help us debug this, can you include the exact request and response in Parse Server? (you can see this in the logs using VERBOSE=1 environment variable)

@fabuhelow
Copy link
Author

Sure, I have enabled parse server logs, and below the result

Parse Server Log:

{  
   "level":"verbose",
   "message":"POST /parse/classes/_Installation { host: 'parse-gcm.my-host.com',\n  'x-real-ip': '212.34.20.24',\n  'x-forwarded-for': '212.34.20.24',\n  'x-forwarded-proto': 'https',\n  connection: 'close',\n  'content-length': '2',\n  'x-parse-os-version': '5.1.1',\n  'x-parse-app-build-version': '21',\n  'x-parse-client-key': 'my-x-parse-client-key',\n  'x-parse-client-version': 'a1.13.0',\n  'x-parse-app-display-version': '2.1.5',\n  'x-parse-installation-id': 'f481593a-2435-4244-ba16-e418f71713c4',\n  'user-agent': 'Parse Android SDK 1.13.0 (com.my-app.main_app/21) API Level 22',\n  'x-parse-application-id': '1tOCYG6UTnfzsH1LTytvkBVOtph4n9tuRLgFH2Gh',\n  'content-type': 'application/json',\n  'accept-encoding': 'gzip' } {}",
   "timestamp":"2016-05-17T09:16:13.538Z"
}{  
   "level":"verbose",
   "message":"POST /parse/classes/_Installation { host: 'parse-gcm.my-host.com',\n  'x-real-ip': '212.34.20.24',\n  'x-forwarded-for': '212.34.20.24',\n  'x-forwarded-proto': 'https',\n  connection: 'close',\n  'content-length': '197',\n  'x-newrelic-id': 'VQcBVVFaCBABUFlRBgAPXw==',\n  'x-parse-os-version': '5.1.1',\n  'x-parse-app-build-version': '21',\n  'x-parse-client-key': 'my-x-parse-client-key',\n  'x-parse-client-version': 'a1.13.0',\n  'x-parse-app-display-version': '2.1.5',\n  'x-parse-installation-id': 'f481593a-2435-4244-ba16-e418f71713c4',\n  'user-agent': 'Parse Android SDK 1.13.0 (com.my-app.main_app/21) API Level 22',\n  'x-parse-application-id': 'my-x-parse-application-id',\n  'content-type': 'application/json',\n  'accept-encoding': 'gzip' } {\n  \"pushType\": \"gcm\",\n  \"deviceToken\": \"APA91bEjwpaGrOgtcBagHbPIvT0ArX6MbTNvSLpAylZtAodGDsntiBl9t71ztf9wXgWiFRHGOx6wW7n78irDaeXqhw6k3TAPPiZCsIP8x0zE461mdFUYAoWuCdEVusyyaopfTkayLX4Pa73F6SA4heJ1ZSj5oCJ_8w\"\n}",
   "timestamp":"2016-05-17T09:16:14.777Z"
}

Nginx Server Log:

212.34.20.24 - - [17/May/2016:09:14:59 +0000] "POST /parse/classes/_Installation HTTP/1.1" 400 110 "-" "Parse Android SDK 1.13.0 (com.my-app.main_app/21) API Level 22"

Note:
I have replaced the following parameters just to let you see the logs :

  • x-parse-client-key
  • Host

Waiting your reply

@drew-gross
Copy link
Contributor

I don't actually see any error messages here. What were you expecting to happen?

@flovilmart
Copy link
Contributor

Closing due to lack of activity, please update to latest parse-server version and reopen if the issue persist.

Don't forget to include your current:

  • node version
  • npm version
  • parse-server version
  • any relevant logs (VERBOSE=1 will enable verbose logging)

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