Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Make sendRequest throw Exception containing curl_error if response is false #102

Merged
merged 1 commit into from
Oct 28, 2023

Conversation

dougkulak
Copy link
Contributor

I ran into an issue where my local SSL certificate was invalid and the CURL request was failing, but the only response I received was "false". This fix simply makes the sendRequest method throw a new Exception containing the curl_error message if the curl response failed. Hopefully this will help others debug their application in the case of similar or other CURL errors.

Copy link
Owner

@orhanerday orhanerday left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! LGTM.

@orhanerday orhanerday merged commit 14ba818 into orhanerday:main Oct 28, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants