You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
In the meantime I figured out the problem. Is not Mautic specific but my local development environment.
I run Mautic with Mamp and I tried to connect to the API endpoints from Docker container.
@jcpicot04 try to debug the Curl error message from here: lib/Auth/AbstractAuth.php, line 178 and you can see the error message.
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: