ardatan / ardatan/graphql-mesh
Receiving 401 without body does not throw an error
- Dominant language
- TypeScript
- Stars
- 3.5k
- Forks
- 363
- Avg merge
- 6h 10m
- Merged PRs (30d)
- 19
Description
**Is your feature request related to a problem? Please describe.**
I have an expired JWT in the headers, the server returns only HTTP headers (without body)
< HTTP/1.1 401 Unauthorized
< www-authenticate: Bearer error="invalid_token", error_description="The token expired at '12/27/2023 17:13:50'"
Instead of throwing an error, the mesh is replacing the response by an empty object
**Describe the solution you'd like**
I'd like the mesh to throw an error
**Describe alternatives you've considered**
N/A
**Additional context**
N/A
Contributor guide
No contributing guide indexed for this repository
Research direction
The report names no file or test entry point. Start by reproducing a GraphQL Mesh request with an expired JWT where the upstream returns HTTP 401 with headers but no body, then trace the response handling that produces an empty object. Done means the 401 response results in an error rather than an empty object, with coverage for the bodyless response.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- graphql, typescript
- Domain
- api, backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100