graphQL endpoint unreachable when using `files: '/*'`
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 68/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Quiet
- Tech stack
- graphql, nextjs, typescript
Research direction
Start at extension.js around line 374 and inspect the server.http handler's interaction with Next.js requestHandler. Reproduce the request with the curl example and trace how an unowned /graphql route is handled. Done means the endpoint returns a GraphQL response instead of Next.js' 404 page.
Written by the indexing model from the issue text.
Description
Getting this error:
lavinia@Lavinias-MacBook-Pro harper-ecommerce-template % curl -sk -X POST "https://us-ord-1.v5-testing.akamai.stage.harperfabric.com:9926/graphql" \
-H "Content-Type: application/json" \
-u "lavinia@harperdb.io:Stephenhawking96.," \
-d '{"query":"{ Product { id name category price } }"}'
<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="/_next/static/css/cfddc0e2b913ca42.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_ne .....
The /graphql endpoint returns a nextjs 404 page instead of a graphQL response.
Here the server.http handler passes every request to next,js' requestHandler without falling through to harper for routes next.js doesn't own.
- Dominant language
- TypeScript
- Stars
- 4
- Forks
- 2
- PR merge metrics
- No merged PRs in 30d
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.
More from HarperFast/nextjs
-
Difficulty 4/5 3-5 days Newbie friendliness 52/100
HarperFast/nextjs#61 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
HarperFast/nextjs#57 · 1 comment ·
-
Difficulty 5/5 Over a week Newbie friendliness 38/100
HarperFast/nextjs#58 · 1 comment ·
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
HarperFast/nextjs#51 ·
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
HarperFast/nextjs#37 · 1 comment ·
All issues in HarperFast/nextjs
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Eynzof/Hermes-CN-Desktop#610 ·
-
bug clawsweeper:linked-pr-open clawsweeper:needs-live-repro clawsweeper:no-new-fix-pr impact:message-loss issue-rating: 🐚 platinum hermit P2 regression
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
calcite-components needs triage refactor
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Esri/calcite-design-system#15203 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
danielmiessler/LifeOS#2218 ·