parse-server: Cannot login via REST
I am trying to log in using curl, like this
curl -X GET -H "X-Parse-Application-Id: ..." -G --data-urlencode 'username=..' --data-urlencode 'password=...' http://.../parse/login
According to https://www.parse.com/docs/rest/guide#users-logging-in.
However I get {"code":101,"error":"Invalid username/password."}.
I can log in just fine with the same username/password in my iOS app.
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 17 (7 by maintainers)
You should url encode the url
Note that this + should be properly URL encoded on your side.
+is a reserved character (like & and =) and may be interpolated as a space serverside.https://en.wikipedia.org/wiki/Percent-encoding and https://en.wikipedia.org/wiki/Query_string