Skip to content

PUT request with no response body returns error #193

@a88zach

Description

@a88zach

I'm using the reactiveSIM/deactivateSIM API methods. Both of these methods issue a PUT request and return a 200 without a response body. However, the response handler is trying to convert the empty body to JSON and fails.

https://github.com/particle-iot/particle-api-js/blob/master/src/Agent.js#L188

The call to particle is successful, but the method errors

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions