Skip to content
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

PUT request with no response body returns error #193

Open
a88zach opened this issue Jan 9, 2025 · 0 comments
Open

PUT request with no response body returns error #193

a88zach opened this issue Jan 9, 2025 · 0 comments

Comments

@a88zach
Copy link

a88zach commented Jan 9, 2025

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant