Open moarief opened 9 months ago
I'm transferring this ticket to the react sdk
Is there any good news about this 404 error?
hi @cekinmezyucel, can you confirm you have this error with the latest v4 release?
hi @edodusi, Im a colleague of @cekinmezyucel and I can confirm we are still having this error with v4
Using the
storyblokApi.get()
method to fetch a story sometimes returns an error, which causes the site to crash as there is no data at all. Not sure why this happens as I have tested with a regular fetch call to the storyblok endpoint, which works without issues.I am using NextJS 14.1.3 for this project and "@storyblok/react": "3.0.8".
Expected Behavior
When using the storyblokApi.get() method the data should be returned as:
Current Behavior
Local testing:
Production environment:
Steps to Reproduce
This is my current
storyblok.ts
setup for getting stories, links etc.:If I change the
getStory
method use a regular fetch method instead I do not get this issue: