-
Notifications
You must be signed in to change notification settings - Fork 46
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
Embedded visual preview returning 422 error in editor #95
Comments
Same issue for me after updating from v1 to v2 and following the documentation. |
Thank you for the reports. It is quite hard to say what could be the problem from the error, but first, could you try to update your storyblok/nuxt package to the latest version? -> https://www.npmjs.com/package/@storyblok/nuxt We made a few improvements, and it would be interesting if it is also happening there. Please be aware that the with are unifying the modules naming, and the latest version of nuxt modules is @storyblok/nuxt, so you will have to rename the module in nuxt.config.js. All the necessary info for transition is here -> https://www.npmjs.com/package/@storyblok/nuxt + check the link for the Live demo. |
@studiolathe @venux92 Did you find a solution or figure out the cause? I'm currently running into the same problem. |
If you are using the URL-parameter from your dynamic routes to fetch your data, then use Example: const route = useRoute();
const storyblokApi = useStoryblokApi();
const story = storyblokApi.get('cdn/stories' + route.path); // not route.fullPath |
@samuells Thanks for the reply and sorry for not getting back to you sooner! I have followed your steps migrating to latest package (although the related project is built on Nuxt 2 so I have installed Are you able to provide any further guidance or advice? On a related note, Nuxt can only run
Do you know why this might be the cause? Thanks in advance! |
Hi @studiolathe, sorry for the late response, is this error still happening to you, were you able to find a solution? |
I'm closing the issue due to inactivity, please feel free to reopen if the issue still happening. Thanks! |
Hi @alvarosabu Please excuse the delayed response! Yes, unfortunately the issue seems to persist and I am struggling to find the definitive guidance on how to manage the correct setup for staging and production environments with Storyblok, particularly with SSR projects. For context I have managed to get the Live Preview editor working in live statically generate environments by using the settings your SB team responded with in my Github issue here: storyblok/storyblok-nuxt-2#62 i.e. using preview token for Although, in my current SSR project I am able edit the
When reviewing the network tab it seems there is a request that is successful and then an additional request that causes the error that has a series of additional queries added (FYI I have hidden tokens below)?
Do we know why this second request is happening? For further context my
And then the
I am not sure if I am misunderstanding something and I am just looking for the correct and desired approach as the docs is isn't clear in this regards? As always, I appreciate any help you could provide! |
I had this issue. Changing from |
Hi there
I have been using Storyblok v1 + Nuxtjs for quite some time without issue, but I am currently stuck on a bug I'm not sure how to fix so I thought it would worth asking for some help!
When attempting to edit an internal page I am receiving a
Status code 422 error
in the embedded visual preview? When checking the console > Network > Preview on the request it returns the message:The content loads fine locally outside of the Storyblok editor but this error means the client can no longer see the preview. It only happens in one particular page so I am struggling to debug.
Any help would be greatly appreciated!
The text was updated successfully, but these errors were encountered: