Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nuxt rc12 + Nginx - page keeps loading indefinitely #15268

Closed
mykkode opened this issue Oct 26, 2022 · 2 comments
Closed

Nuxt rc12 + Nginx - page keeps loading indefinitely #15268

mykkode opened this issue Oct 26, 2022 · 2 comments

Comments

@mykkode
Copy link

mykkode commented Oct 26, 2022

Environment

Nuxt project info: 16:10:18


  • Operating System: Windows_NT
  • Node Version: v16.17.0
  • Nuxt Version: 3.0.0-rc.12
  • Nitro Version: 0.6.0
  • Package Manager: yarn@1.22.19
  • Builder: vite
  • User Config: -
  • Runtime Modules: -
  • Build Modules: -

Reproduction

Create a fresh project with nuxi: npx nuxi init

Build the project: 'yarn build'

Preview the project: 'yarn preview' or 'yarn start'

Create a nginx proxy using nuxt 2 example configuration: https://nuxtjs.org/deployments/nginx/ (the first code block)

Describe the bug

When you open the preview in browser (port 3000) everything works as expected.

When you open in browser the nginx url (ex: localhost as show in nuxt 2 nginx example configuration) it keeps loading indefinitely (even though the content is served).

I have a CI/CD pipeline that broke when upgrading to rc12. Until now it worked as expected.
I have also tested locally the same configuration (nginx + nuxt) and the results are consistent, the web page keeps loading when using nginx.

Additional context

I believe that it has something to do with the "Early Hints" feature. In nginx logs I can see that nuxt server replied with a 103 status code.

Logs

127.0.0.1 - - [26/Oct/2022:16:01:16 +0300] "GET / HTTP/1.1" 103 16899 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Safari/537.36"
@mykkode mykkode changed the title Nuxt + Nginx - page keeps loading indefinitely Nuxt rc12 + Nginx - page keeps loading indefinitely Oct 26, 2022
@danielroe
Copy link
Member

This should be resolved in the edge channel, or in the next RC.

You can work around by setting experimental.writeEarlyHints to false.

See #15189

@danielroe danielroe closed this as not planned Won't fix, can't repro, duplicate, stale Oct 26, 2022
@tiborpino
Copy link

I think the issue is related to the issue #5871 There is no good reason to prefetch and preload everything.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants