codesandbox / codesandbox/codesandbox-client
Status text is not proxied correctly
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 13.6k
- Forks
- 2.4k
- Avg merge
- 6d 19h
- Merged PRs (30d)
- 2
Description
🐛 bug report
Preflight Checklist
- I have read the Contributing Guidelines for this project.
- I agree to follow the Code of Conduct that this project adheres to.
- I have searched the issue tracker for an issue that matches the one I want to file, without success.
Description of the problem
When running a HTTP server that returns status text, e.g. 400 Bad Request, the status text is not sent back to the browser when using the codesandbox client.
Expected behaviour in MRE: devtools network panel shows status as 400 Bad Request.
Actual behaviour: devtools network panel shows status as 400.
If I run the same code locally with node directly, and go to localhost:4000, the network panel shows 400 Bad Request as expected.
Apologies if this is the wrong repository to report the issue against: happy to be redirected if I'm supposed to submit this elsewhere.
How has this issue affected you? What are you trying to accomplish?
Trying to use codesandbox as a place to create MREs for issues in GraphQL libraries
To Reproduce
Contributor guide
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
Start with the linked CodeSandbox reproduction and compare its proxied HTTP response with the same server run directly with node. Trace where the proxy handles the response status, then verify that the browser receives both 400 and Bad Request as shown in the expected behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, node.js
- Domain
- api, backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100