Skip to content

useAsyncStoryblok returns undefined when story is not found #828

Open
@LukasHechenbergerID

Description

@LukasHechenbergerID

Describe the issue you're facing

When calling useAsyncStoryblok with a nonexistent url, I get undefined back.

In the documentation there is this bit:
image
Previously there would be a status returned, regardless if the site exists or not.
But now you get undefined back and it throws an error (instead of a 404 there is a 500 shown to the user in my case)

Has the api changed?? I couldn't find infos on this

Reproduction

Sorry, none

Steps to reproduce

No response

System Info

Nuxt 3.11.2
@storyblok/nuxt 6.0.9

Used Package Manager

pnpm

Error logs (Optional)

No response

Validations

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs-reproduction[Contribution] The issue requires minimal reproduction.pending-author[Issue] Awaiting further information or action from the issue authorpending-triage[Issue] Ticket is pending to be prioritised

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions