Parse-server: Received an error with invalid JSON from Parse: Cannot POST /classes/_User\n

Created on 2 Mar 2016  路  1Comment  路  Source: parse-community/parse-server

I'm using PFUser-Digits resource to authenticate parse users using Twitter's Digits API.

My parse server is hosted on App Engine with MongoLab database.

I get this error when trying to signup/login

RESOURCES USED

Link to Swift File
Link to Cloud Code handling Authentication

swift 2016-03-01 23:59:49.646 Bars[10323:15114219] [Error]: { code = 107; message = "Received an error with invalid JSON from Parse: Cannot POST /classes/_User\n"; } (Code: 141, Version: 1.12.0) 2016-03-01 23:59:49.647 Bars[10323:15113659] -[__NSCFDictionary length]: unrecognized selector sent to instance 0x7fe0adc33a10```

Most helpful comment

SOLVED

In server.js, I neglected adding *_/parse *_ in serverURL: process.env.SERVER_URL || 'https://projectname.appspot.com/parse

because I thought it was taken care of here
app.use(process.env.PARSE_MOUNT_PATH || '/parse', parseServer);

>All comments

SOLVED

In server.js, I neglected adding *_/parse *_ in serverURL: process.env.SERVER_URL || 'https://projectname.appspot.com/parse

because I thought it was taken care of here
app.use(process.env.PARSE_MOUNT_PATH || '/parse', parseServer);

Was this page helpful?
0 / 5 - 0 ratings

Related issues

kilabyte picture kilabyte  路  4Comments

mohmagdy picture mohmagdy  路  3Comments

jiawenzhang picture jiawenzhang  路  4Comments

ugo-geronimo picture ugo-geronimo  路  3Comments

pulse1989 picture pulse1989  路  3Comments