-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Improper encode of parameter error #1548
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
Comments
We have lots of passing test cases that cover these features. Can you post some code that reliably reproduces your issue? Ideally as a test case we can add to our test suite. |
Failing Test case: Please note that it seems that the JS sdk and parse server expect differently formatted POST params. |
@drew-gross any thoughts? |
I can try to fix it by handling the special params that the POST uses from the JS SDK, however I am not sure where the best place for this would be. So if you can guide me to the correct files it would be great. |
I verified that this does indeed fail, but I haven't had time to make a fix yet. |
I have a fix, opening PR |
The test I had was wrong it seems I have fixed the test and it now passes Going to investigate more why this is happening |
|
No, that shouldn't matter. Can you look as the logs and find the request that returns 400? |
I'm having this same issue right now. It appears that request is failing in this block of code here: I inspected the It looks like this block of code in the There are a few ways presumably this could be handled, e.g. pulling out the revocable session key in the middleware where the other keys are handled, or else adding it to the allowed constraints list. |
@drew-gross same query as mentioned in the initial bug report - that had _RevocableSession in it already Just clearing it in |
Environment Setup
Steps to reproduce
Simple queries using JS SDK would work with parse hosted api and fail with
{"code":102,"error":"Improper encode of parameter"}
Query generates following REST:
Request URL: http://localhost:5001/api/classes/Request
Request Method: POST
Logs/Trace
The text was updated successfully, but these errors were encountered: