You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
{"code":1,"message":"Internal server error."} #174
i get this when i try curl post or get
{"code":1,"message":"Internal server error."}
ex : for get
curl -X GET
-H "X-Parse-Application-Id:XXXXXXXXXXXXXXXXXXXXX"
-H "X-Parse-Master-Key: XXXXXXXXXXXX" http://XXXXXXX.azurewebsites.net/parse/classes/user
ex for post
curl -X POST
-H "X-Parse-Application-Id: XXXXXXXXXXXXXXXX"
-H "Content-Type: application/json"
-d '{"score":1337,"playerName":"Sean Plott","cheatMode":false}' http://XXXXXXX.azurewebsites.net/parse/classes/GameScore
*when it try post it notice that the "GameScore" class create but no data on it
*
and when it try on android sdk
i get this log
V/com.parse.ParseRequest: Request failed. Waiting 5020 milliseconds before attempt #3
@WahdanZ
in node_modules/parse/lib/node/CoreManager.js make sure SERVER_URL will be pointing to https://api.parse.com/1 by default
You need to point it to your server.
That fixed the issue for me
If you use express 3.x in the project, you need to create app for Parse Server using 4.x version that is available under the module's node_modules folder.
Activity
WahdanZ commentedon Feb 3, 2016
i create new site and it work
ravikanchikare commentedon Feb 3, 2016
@WahdanZ
in node_modules/parse/lib/node/CoreManager.js make sure SERVER_URL will be pointing to https://api.parse.com/1 by default
You need to point it to your server.
That fixed the issue for me
tiraeth commentedon Feb 3, 2016
Also, on my end, problem was with express version. I had 3.x with the project originally ;-)
belakva commentedon Feb 4, 2016
@tiraeth could you, please, provide some details? I had to update Parse SDK to use Parse Server, and now I get the same error.
tiraeth commentedon Feb 4, 2016
If you use express 3.x in the project, you need to create app for Parse Server using 4.x version that is available under the module's
node_modulesfolder.Instead of:
Use:
belakva commentedon Feb 4, 2016
@tiraeth thanks, solved!
mahabubakram commentedon Feb 4, 2016
var userLayer = Parse.Object.extend("Types"); var userQuery = new Parse.Query(userLayer); userQuery.find({ success: function(objects){ console.log(objects); }, error: function(err){ console.log(err) } })when I try to do the same thing using JS SDK it gives me the error.
How to solve this ?
belakva commentedon Feb 4, 2016
@mahabubakram check server logs, to get more details of why the error takes place. if running Heroku,
heroku logs --app <name>(e.g. safe-sea-666-999)gateway commentedon Feb 9, 2016
EDIT:.. found my stoopid issue, in cut and paste of the request the quotes changed from " to “ in the where clause..
I just ran into this error when trying to do a CURL GET request to return an object..
CURL request
In Heroku I'm seeing this in the logs..