-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
500 This page is temporarily unavailable. #25123
Comments
Would you be able to provide a reproduction? 🙏 More infoWhy do I need to provide a reproduction?Reproductions make it possible for us to triage and fix issues quickly with a relatively small team. It helps us discover the source of the problem, and also can reveal assumptions you or we might be making. What will happen?If you've provided a reproduction, we'll remove the label and try to reproduce the issue. If we can, we'll mark it as a bug and prioritize it based on its severity and how many people we think it might affect. If How can I create a reproduction?We have a couple of templates for starting with a minimal reproduction: 👉 https://stackblitz.com/github/nuxt/starter/tree/v3-stackblitz A public GitHub repository is also perfect. 👌 Please ensure that the reproduction is as minimal as possible. See more details in our guide. You might also find these other articles interesting and/or helpful: |
It is imporatnt to note that when navigating from within the nuxt app, i dont get this error. Only when directly accesing it via typing the route in url. Pretty sure that this is a bug. Dont know how to reproduce! |
@danielroe how would i reproduce this? |
Try to reproduce locally using |
Ok thanks so much. Busy building - should there be a way to debug it? Also, why would that be if you can navigate to the page and all works, but when accesing it directly not? Edit |
Now try The difference between the two situations is that one is rendering the page on the server. The other is doing it on the client. |
thanks. tested that, works also there. |
Would love to solve my problem - i am sure it is my error (definilty would appreciate help with that) however these are my main points; My two questions are;
Thanks Daniel for your help ❤️ |
@danielroe here is a bit more information Might be a vite error? [10:34:32 PM] ERROR Internal server error: Internal server error: Soft-invalidated module "/node_modules/nuxt/dist/app/entry.js" should not have existing transform result |
@moshetanzer |
Thanks for your answer, why then on nuxt build and preview locally do i not get this error? |
Well your local environment I image is different to the server? |
Thanks for your help but: have got node engine defined in packae.json ran it using node as @danielroe suggested shouldnt include any env var... Do you have a suggestion how to debug, not understanding your suggestion. Other issue quoted doesn't seem to have any solution either - what are you suggesting from there? What i am suggesting is that this is not "Temporarily unavailable" it is an acutal issue that wont get resolved and therefore either should be a clear and dx freindly way to debug, else should display some less generic message. Additionaly, for dx there should be some way to match the navigating and accesign directly... This is also a new issue, not sure why anything should have changed in latest vue and nuxt, but it wasnt present before Do think it may be a vite issue... Thanks for your help 🙏 ! |
There is different people reporting different approaches that solved the problem for them, hence I linked it mentioning it might contain ideas.
You can set the page that's throwing the error for you to
Vite 5 was introduced and with the error log you linked a few minutes ago (thanks for that 👍) it does look like it's vite related, this distinction also explaining why only one env of server/client is throwing the error https://github.com/vitejs/vite/blob/2836276dc0e132c4d64dc4c08fc730058406f2c0/packages/vite/src/node/server/transformRequest.ts#L398 There is also a seemingly working reproduction over on the unocss repo unocss/unocss#3472 |
Thanks again for your time. Yeah, aware of setting to ssr:false, only thing is seo quite important specifically on this page, but definilty is a temporary solution. What steps do you think need to be taken for a permanant solution? Is this something Nuxt should correct or Vite? Thanks again |
@warflash do you understand what the actual error is, have quite understood... Thanks so much |
@danielroe what do you suggest? Do you think this a bug or incompetency? |
Seems to be a reproduction now. Any update on this? |
@moshetanzer do you also use unocss? |
Nope. Just nuxt 3. Work perfectly when on dev and on production with ssr false... really been a pain. |
@moshetanzer Then we need a reproduction from that 👍 |
@manniL Sorry, dont know anyway to debug - so cant reproduce. If you have any suggestion would be keen to try. |
@moshetanzer You don't need to debug. Simply provide a reproduction that shows that issue as described here. Without knowing how to "make that error show", how should we fix it? 😋 |
I have absoloutly no idea how to reproduce since i cant put my finger on what the issue is. Just get the generic 500 with page is temporarily unaviable. But do not get it when using csr or ssr on local with build. Do you have any suggestion of how to catch the error, it is only on one page of site.. Would be happy to dm you live links to see... Thanks! |
Hi, @moshetanzer, I have the same issue, after updating to last update, when trying to acces the build app its showing 500 This page is temporarily unavailable. If i downgrade to 3.8 works fine. package.json : Error: |
@zgurea1 Almost certainly you have multiple versions of Vue installed. Check and dedupe your lock file and you should be good... |
@danielroe I deleted the lock, node_modules and .nuxt, did a fresh install build, and i have the same error |
And in your lockfile? |
@danielroe I deleted yarn.lock. I need to do something else inside it? |
Look inside it to see whether you have more than one Vue version. |
Just received this issue adding @nuxtjs/tailwindcss 🤔 |
Also gone after a few refreshes 🤔 |
I was facing the same issue, but downgrading didn't work. My solution was changing the package manager (from yarn to npm). After re-installing the dependencies and rebuild it started working. 🙏🤝 |
maybe this helps somebody. I ran into this error too and daniels comment made me realize that I still have a preview version of vue 3.4, updated that and my problem went away (HangarMC/Hangar@efe3e0b) basically you want to open your lockfile and search for server-renderer, if its there twice, you have to track down why (search where server renderer is used, then server where that is used, go up the whole tree, till you come to the root of the problem): |
Hi all, Seem to be that when I did an upgrade oferch caused the issue. It is resolved. This isn't a bug in nuxt latest version. Also error message is inaccurate since it was not a temporary issue. Additionally, to have better DX would suggest that there would be a way to test on build for 500 errors. Or some way clone the refresh on hmr since I was only getting this error on production and on full page reload or direct access. Just my thoughts. Thanks to @danielroe and all maintainers for this powerful framework. Think this issue can be closed unless suggestions want to be added as nice to have... |
Hello everyone, What solved it for me was switching back to npm. Yarn was installing two vue versions (since 3.4.15, the one bundled with nuxt is messing up Transition between pages, I decided to install vue 3.4.8, which is more stable for now). It messed up with vue/server-renderer package. Npm is taking in consideration only the 3.4.8, not both. |
updating prod node version from 16 to 18 to match the development machine fixed the issue for me |
Environment
Production
Reproduction
Not sure how to reproduce this, since have no way to debug it seemingly. Could be wrong though.
Describe the bug
Hi,
I have come across an issue that i didnt come across before nuxt v3.9 and vue 3.4.
I am getting a screen that states "500. This page is temporarily unavailable" only a specfic page in my production site.
On dev i dont get any issue at all - and there seems no way to debug this issue since nothing is logged.
Surely there should be a way to debug fatal errors in production?
Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered: