Skip to content

Improper encode of parameter error #1548

Closed
@codebreach

Description

@codebreach

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"

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:bugImpaired feature or lacking behavior that is likely assumed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions