Skip to content
This repository has been archived by the owner on Aug 14, 2023. It is now read-only.

b1rdex/next.js-fetch-error

Repository files navigation

Next.js fetch error

This repo was created to reproduce the error in recent next.js version.

To reproduce:

docker build -t temp .
export TEMP_CONTAINER_ID=$(docker run --rm -d -p3000:3000 temp)
sleep 5
curl http://localhost:3000
docker logs -f $TEMP_CONTAINER_ID
# you should see something like "TypeError: fetch failed" in the logs ("cause: Error: connect ECONNREFUSED 127.0.0.1:39811")

# cleanup:
docker rm -f $TEMP_CONTAINER_ID
docker image rm temp

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published