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

[pinia-plugin-persistedstate] Error: [nuxt] instance unavailable #374

Open
4 of 5 tasks
PatrickBauer opened this issue Jan 27, 2025 · 0 comments
Open
4 of 5 tasks
Labels
🔍️ pending triage This issue needs to be looked into

Comments

@PatrickBauer
Copy link

PatrickBauer commented Jan 27, 2025

Are you using Nuxt?

  • Check this box if you encountered the issue using Nuxt and the included module.

Describe the bug

Dear maintainer,
I know this is not a well described bug report - but the reason is that we have no idea what's actually happening.

We're using Nuxt in conjunction with pinia-plugin-persistedstate and we encounter the problem, that randomly, out of many thousands of user requests, sometimes a users cookie does not seem to get loaded, which lets the store hydration step fail and resets the store to its initial state (which in our case means a sale fails to go through).

When enabling the debug flag for pinia-plugin-persistedstate, we randomly get the mentioned [pinia-plugin-persistedstate] Error: [nuxt] instance unavailable error message in our server-side error logs. We're already using the experimental asyncContext feature of Nuxt.

Any idea how we could further debug this?
Any pointer is much appreciated 🙏

Reproduction

We're not able to reproduce this, as this happens randomly

System Info

Docker ubuntu:22.04
Node 20.15.1

Used Package Manager

npm

Validations

@PatrickBauer PatrickBauer added the 🔍️ pending triage This issue needs to be looked into label Jan 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔍️ pending triage This issue needs to be looked into
Projects
None yet
Development

No branches or pull requests

1 participant