-
Notifications
You must be signed in to change notification settings - Fork 124
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
API error The response has unexpected status code (0) #248
Comments
Hi, Same error in here with the basic Contacts API get method. Thank you! |
In the meantime I figured out the problem. Is not Mautic specific but my local development environment. @jcpicot04 try to debug the Curl error message from here: lib/Auth/AbstractAuth.php, line 178 and you can see the error message. |
Does anybody got its solution? Referring to @kovkor response, can you please expain as that file is not in Mautic 3.3.3 version |
In my case I put this line temporarily into the file lib/Auth/AbstractAuth.php, line 178 The error message was: |
Hi! I’m trying to connect with the API using Basic Auth but I’m getting an error 0.
It’s not a caché problem, i’m deleting the caché frequently.
The full response it’s:
array(1) { [“errors”]=> array(1) { [0]=> array(2) { [“code”]=> int(0) [“message”]=> string(56) "The response has unexpected status code (0). Response: " } } }
That’s my code:
And all good in the config:
Thanks!
UPDATE:
The code return the same error in post/update but works!
It’s not working only for GET method, only returns the 0 error.
Any help? Thanks!
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
The text was updated successfully, but these errors were encountered: