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

POST requests with empty body result in exception #126

Closed
fklebert opened this issue Dec 13, 2024 · 0 comments
Closed

POST requests with empty body result in exception #126

fklebert opened this issue Dec 13, 2024 · 0 comments
Assignees
Labels
Bug 🐛 Something isn't working C++ 🐺 This issue affects the zswag C++ client. Python 🐍 This issue affects the zswag Python client.

Comments

@fklebert
Copy link
Contributor

POST and (potentially other methods) throw an exception basic_string::_M_construct null not valid when the request object is empty.

After analysis this turns out to be an error that was introduced via an update of the external httplib library. This lib had breaking changes in the API, as it uses std::string now instead of const char*.

@fklebert fklebert added Bug 🐛 Something isn't working C++ 🐺 This issue affects the zswag C++ client. labels Dec 13, 2024
@fklebert fklebert self-assigned this Dec 13, 2024
@josephbirkner josephbirkner added the Python 🐍 This issue affects the zswag Python client. label Dec 13, 2024
fklebert added a commit that referenced this issue Dec 13, 2024
Fix httplib API calls for empty body #126
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug 🐛 Something isn't working C++ 🐺 This issue affects the zswag C++ client. Python 🐍 This issue affects the zswag Python client.
Projects
None yet
Development

No branches or pull requests

2 participants