parse-server icon indicating copy to clipboard operation
parse-server copied to clipboard

Upgrading to 2.1.X returns bad request and nothing works!

Open Copyrightsworld opened this issue 10 years ago • 1 comments

Hi all,

We had a totally working web client (PHP sdk) and two IOS and Android clients. When we moved to Parse server standalone on heroku, everything was working great still.

After 2.1 release of the Parse server, all clients stopped working and we can not spot what have changed.

On php we get a "BAD REQUEST" error pointing to the following,

" 3 0.0814 1231968 Parse\ParseQuery->find( ) ../base.php:69 4 0.0826 1233680 Parse\ParseClient::_request( ) ../ParseQuery.php:362 "

On IOs we get "[Error]: Failed to run command eventually with error: Error Domain=NSCocoaErrorDomain Code=3840 "JSON text did not start with array or object and option to allow fragments not set." UserInfo={NSDebugDescription=JSON text did not start with array or object and option to allow fragments not set.}"

The same happens with parse server 2.1.1, 2.1.2, 2.1.3 and 2.1.4.

When we go back to 2.0, everything works again (but we have no S3 adapter support).

Anyone facing something similar ? Any ideas?

Thank you for your help in advance.

G

Copyrightsworld avatar Mar 04 '16 07:03 Copyrightsworld

Ok, solved that.

Versions 2.0 and earlier of the PS works ok without the PARSE_SERVER_URL on Heroku. Later versions require it.

So after i set "PARSE_SERVER_URL" on heroku, everything works as before.

Just in case anyone runs to the same issue.

Tnx.

Copyrightsworld avatar Mar 04 '16 10:03 Copyrightsworld