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

Error: [[email protected]][Bug] You stumbled upon a Vike bug in production application #1565

Closed
alexdriaguine opened this issue Mar 19, 2024 · 5 comments
Labels

Comments

@alexdriaguine
Copy link

Description

Hi, firstly, thanks for an awesome plugin/framework, really enjoying it.

We have recently deployed our first application with vike to production, and get this error thrown sometimes.
Every time, it is paired with error logs before and after that the backend service we are calling either times out or returns 503 service unavailable, so I think it's related to that, just in some cases, we get this error from vike instead.

We fetch data from this api in the onBeforeRender hook in index.page.server.tsx (haven't upgraded to v1 just yet), and that service sometimes has issues (slow, memory issues). That team is looking into upgrading the memory on their side but for now I'm curious on why we get these errors on some requests.

Error: [vike@0.4.160][Bug] You stumbled upon a Vike bug. Go to https://github.com/vikejs/vike/issues/new and copy-paste this error. A maintainer will fix the bug (usually under 24 hours).
    at extractFromPath (file:///home/site/wwwroot/node_modules/.pnpm/[email protected][email protected]/node_modules/vike/dist/esm/node/runtime/renderPage/logHintForCjsEsmError.js:228:5)
    at extractFromNodeModulesPath (file:///home/site/wwwroot/node_modules/.pnpm/[email protected][email protected]/node_modules/vike/dist/esm/node/runtime/renderPage/logHintForCjsEsmError.js:244:25)
    at getPackageName_stack1 (file:///home/site/wwwroot/node_modules/.pnpm/[email protected][email protected]/node_modules/vike/dist/esm/node/runtime/renderPage/logHintForCjsEsmError.js:192:12)
    at isCjsEsmError (file:///home/site/wwwroot/node_modules/.pnpm/[email protected][email protected]/node_modules/vike/dist/esm/node/runtime/renderPage/logHintForCjsEsmError.js:52:32)
    at getHint (file:///home/site/wwwroot/node_modules/.pnpm/[email protected][email protected]/node_modules/vike/dist/esm/node/runtime/renderPage/logHintForCjsEsmError.js:21:17)
    at logHintForCjsEsmError (file:///home/site/wwwroot/node_modules/.pnpm/[email protected][email protected]/node_modules/vike/dist/esm/node/runtime/renderPage/logHintForCjsEsmError.js:12:18)
    at onRuntimeError (file:///home/site/wwwroot/node_modules/.pnpm/[email protected][email protected]/node_modules/vike/dist/esm/node/runtime/renderPage/loggerProd.js:24:5)
    at logErrorProd (file:///home/site/wwwroot/node_modules/.pnpm/[email protected][email protected]/node_modules/vike/dist/esm/node/runtime/renderPage/loggerProd.js:19:5)
    at renderPageAlreadyPrepared (file:///home/site/wwwroot/node_modules/.pnpm/[email protected][email protected]/node_modules/vike/dist/esm/node/runtime/renderPage.js:126:13)
    at async renderPageAndPrepare (file:///home/site/wwwroot/node_modules/.pnpm/[email protected][email protected]/node_modules/vike/dist/esm/node/runtime/renderPage.js:101:12)
    at async renderPage_wrapper (file:///home/site/wwwroot/node_modules/.pnpm/[email protected][email protected]/node_modules/vike/dist/esm/node/runtime/renderPage.js:26:24)
    at async renderPage (file:///home/site/wwwroot/node_modules/.pnpm/[email protected][email protected]/node_modules/vike/dist/esm/node/runtime/renderPage.js:46:50)
    at async handleRenderReactApp (file:///home/site/wwwroot/dist/server.mjs:1456:23)
@brillout
Copy link
Member

[[email protected]]

I think this was resolved in the latest versions. But let me know if you still get this error after updating and I'll re-open.

Hi, firstly, thanks for an awesome plugin/framework, really enjoying it.

Thanks! I'm glad you're enjoying it. Btw would your company be up for sponsoring? It makes a massive difference.

@brillout brillout closed this as not planned Won't fix, can't repro, duplicate, stale Mar 19, 2024
@alexdriaguine
Copy link
Author

Thanks, I'll upgrade to latest version and see if that fixes the issue :D

About the sponsoring, I cant't promise anything but I will definetly check and make a case for it with the higher ups!

@brillout
Copy link
Member

👍 And thanks! Let me know how it goes.

@alexdriaguine
Copy link
Author

@brillout we updated to latest version of vike and the errors dissapeared, thanks!

@brillout
Copy link
Member

Ok great. Let me know if there is anything else.

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

No branches or pull requests

2 participants