Calling an specific endpoint stalls .json
with the special fetch
#41988
Labels
bug
Issue was opened via the bug report template.
.json
with the special fetch
#41988
Verify canary release
Provide environment information
What browser are you using? (if relevant)
No response
How are you deploying your application? (if relevant)
No response
Describe the Bug
Calling this endpoint using the
app
fetch,"https://pokeapi.co/api/v2/pokemon/1"
causes.json()
to stall. I've tried with 1, 4, 5, and a few others.Expected Behavior
.json()
should not stall.Link to reproduction
https://github.com/icyJoseph/next-13-app-json-stall
To Reproduce
Create a next-app with:
And fill the landing page with:
Observe that the page stalls, you can sprinkle logs to see that
const pokeData = await poke.json();
stalls. What could possibly cause that specifically? The same pattern works in https://next-js-react-gbg.vercel.app/pokemon/151 which usespages
.Comment out
pokeData
and swap it by the empty object, then the page renders.The text was updated successfully, but these errors were encountered: