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

HTTP Client error when json body missing #8

Open
ryan-slack-big opened this issue Jul 8, 2021 · 0 comments
Open

HTTP Client error when json body missing #8

ryan-slack-big opened this issue Jul 8, 2021 · 0 comments

Comments

@ryan-slack-big
Copy link

The client library errors out trying to read the body of a HEAD response with content type "application/json".

Example:

dw::io::http::Client::request("HEAD","https://my-json-server.typicode.com/typicode/demo/profile")

Error:

Unable to parse empty input, while reading `client.request.body` as Json.

However, request("HEAD","https://example.com") works fine. Maybe it something to do with the content-type?

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