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

[Feature Request]: Do not catch axios errors from storybook components #23321

Open
sw-tracker opened this issue Jul 5, 2023 · 0 comments
Open

Comments

@sw-tracker
Copy link

sw-tracker commented Jul 5, 2023

Is your feature request related to a problem? Please describe

Currently, when I execute the following code in a component and add it to storybook, if the call returns any error code, the catch is never called.

    axiosInstance
      .get<BlahDto>(`/blah`)
      .then((response) => {
        console.log('success');
      })
      .catch((error) => {
        console.log('error', error);
      });

and I see this message:

Error: ignoredException
    at runtime.mjs:4:91020

Describe the solution you'd like

Let axios http errors bubble as normal/

Describe alternatives you've considered

No response

Are you able to assist to bring the feature to reality?

no

Additional context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

No branches or pull requests

1 participant