-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
/GET /users/me triggers handler for /GET /users/:objectId as well #2933
Comments
zaach
added a commit
to zaach/parse-server
that referenced
this issue
Oct 25, 2016
(This was an issue with an older version.) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
/GET /users/me
matches two routes because of the overlap with/GET /users/:objectId
. The second handler is called with theobjectId
set tome
, which fails with a "Object not found." error.Steps to reproduce
curl -X GET /users/me
(with necessary headers)Expected Results
There should only be one request logged, and no "Object not found." error.
Actual Outcome
Two separate logs for
verbose: REQUEST for [GET] /parse/1/users/me
, an "Object not found." ParseError, and an express.js errorError: Can't set headers after they are sent.
Environment Setup
parse-server 2.2.23 locally and on AWS
Logs/Trace
The text was updated successfully, but these errors were encountered: