Closed
Description
- You've met the prerequisites.
- You're running the latest version of Parse Server.
- You've searched through existing issues. Chances are that your issue has been reported or resolved before.
Environment Setup
- local server
- mongolab db
- Parse JS SDK 1.8.3
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
_ApplicationId: "REDACTED"
_ClientVersion: "js1.8.3"
_InstallationId: "REDACTED"
_JavaScriptKey: "REDACTED"
_RevocableSession: "1"
_SessionToken: "REDACTED"
_method: "GET"
include: "creator,chosen_venue"
order: "-request_time"
where: {}
Logs/Trace
::ffff:127.0.0.1 - - [19/Apr/2016:12:48:35 +0000] "GET /api/classes/Request HTTP/1.1" 400 51 "http://localhost:5000/manage/app/requests" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.112 Safari/537.36"
::ffff:127.0.0.1 - - [19/Apr/2016:12:48:35 +0000] "GET /api/classes/Request HTTP/1.1" 400 51 "http://localhost:5000/manage/app/requests" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.112 Safari/537.36"