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

JSON.parse error for 204 status code (no content) #63

Open
alessioalex opened this issue Mar 26, 2021 · 0 comments
Open

JSON.parse error for 204 status code (no content) #63

alessioalex opened this issue Mar 26, 2021 · 0 comments

Comments

@alessioalex
Copy link
Contributor

So I'm sending a JSON object via the POST method and using .concat, but the problem is the endpoint is returning 204 No Content and simple-get is trying to parse that. I think the correct behavior in this case would be to return an empty object or even null.

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