API error The response has unexpected status code (0)
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 205
- Forks
- 129
- PR merge metrics
- No merged PRs in 30d
Description
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.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No source files or tests are named. Start by reproducing the Basic Auth GET request described in the issue and compare it with the working POST/update requests; done means the cause of status code 0 is identified and the GET behavior is covered by an appropriate test.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- api
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100