Skip to content

Parse-Server shuts down once a User signup request is received #5192

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

Closed
tuwchia opened this issue Nov 26, 2018 · 11 comments
Closed

Parse-Server shuts down once a User signup request is received #5192

tuwchia opened this issue Nov 26, 2018 · 11 comments

Comments

@tuwchia
Copy link

tuwchia commented Nov 26, 2018

Issue Description

I was trying to sign up a user to the parse server, and the server shuts down, claiming JSON syntax error. I remove the parse-server@3.1.1 and install an earlier version, 3.0.0. Then used the same piece of data for user creation. You know what, the signup succeeds.

Steps to reproduce

After installing parse-server@3.1.1/3.1.0, and fire a curl command from the rest api doc. The parse server always shuts down.

After installing parse-server@3.0.0, and fire the same command, the parse server accepts the user creation request like always.

Expected Results

User signup succeeds when using 3.1.0 and above versions

Actual Outcome

User signup succeeds when 3.0.0 is in use, but fails 3.1.0 and above versions are in use.

Environment Setup

  • Server

    • parse-server version (Be specific! Don't say 'latest'.) : 3.0.0/3.1.0/3.1.1
    • Operating System: Windows 7 64bit
    • Hardware: 4 Core/8 GB
    • Localhost or remote server? (AWS, Heroku, Azure, Digital Ocean, etc): localhost
  • Database

    • MongoDB version: 4.0
    • Storage engine: wildtiger
    • Hardware: Same machine as the server
    • Localhost or remote server? (AWS, mLab, ObjectRocket, Digital Ocean, etc): localhost

Logs/Trace

"ParseError: 100 XMLHttpRequest failed: "SyntaxError: Unexpected end of JSON input""

@flovilmart
Copy link
Contributor

Can you provide the server logs when running with VERBOSE=1 set?

@tuwchia
Copy link
Author

tuwchia commented Nov 26, 2018

nothing output, just shutdown

@flovilmart
Copy link
Contributor

Are your running with the verbose logs? What is your configuration?

@tuwchia
Copy link
Author

tuwchia commented Nov 26, 2018

`[13728] parse-server running on http://localhost:1337/parse
verbose: REQUEST for [POST] /parse/users: {
"username": "cooldude6",
"password": "",
"phone": "415-392-0202"
} method=POST, url=/parse/users, host=localhost:1337, connection=keep-alive, con
tent-length=69, origin=chrome-extension://aejoelaoggembcahagimdiliamlcdmfm, x-pa
rse-application-id=7da3ed62-4ec3-4444-a112-e9cea813f910, x-parse-master-key=tlRz
TlrTwhEzMeGRCYuVdrsJc25WX1cS, content-type=application/json, user-agent=Mozilla/
5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/7
0.0.3538.102 Safari/537.36, x-parse-revocable-session=1, accept=/, accept-enco
ding=gzip, deflate, br, accept-language=zh-CN,zh;q=0.9,en-US;q=0.8,en;q=0.7, use
rname=cooldude6, password=
, phone=415-392-0202

E:\Projects\devdocBack>`

@tuwchia
Copy link
Author

tuwchia commented Nov 26, 2018

in verbose mode, just output the request with data and headers, and then the server quits

@flovilmart
Copy link
Contributor

What is the exit code of the process? What version of node are you running?

@tuwchia
Copy link
Author

tuwchia commented Nov 27, 2018

no exit code

@tuwchia
Copy link
Author

tuwchia commented Nov 27, 2018

I just installed the parse-server@3.1.1 using npm instead of yarn. It succeeds with user creation.

@flovilmart
Copy link
Contributor

this should make no difference, unless you had different versions of node.

@tuwchia
Copy link
Author

tuwchia commented Nov 27, 2018

i don't know why. Since parse-server required node-gyp to compile, and i think there might be differences between npm and yarn in the way they do the compilation.

@flovilmart
Copy link
Contributor

We do not test with yarn nor support it actively.

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

2 participants