Skip to content

Unexpected end of JSON input #63

@eikaramba

Description

@eikaramba

When i do

let res = await Http.request({
                    url:"xxxxx",
                        method: "DELETE,
                        headers: {
                          Authorization: "Bearer XXXX"
                       }
               });
console.log("res",res);

and the server responds with an empty body (which is valid for DELETE) and status 204. then i get the above error. it seems this library tries to parse the body no matter what.

Which platform(s) does your issue occur on?

  • Android 11

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions