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

Error callback not called if specs are not found #2025

Closed
meden opened this issue May 27, 2022 · 1 comment · Fixed by #2182
Closed

Error callback not called if specs are not found #2025

meden opened this issue May 27, 2022 · 1 comment · Fixed by #2182

Comments

@meden
Copy link

meden commented May 27, 2022

Describe the bug
Error callback not called if specs are not found.

Expected behavior
The error callback being called even in this case, so to be able to recover.

Minimal reproducible OpenAPI snippet(if possible)
N/A

Screenshots
image

Additional context
I faced this problem by using a minimal Redoc HTML file, initializing Redoc manually. If the spec URL is wrong, I get a stack trace, and the component dies.

I'd like to be able to re-init the component with the right URL (I'm using a select to switch specs).

I think the issue is because of an uncaught error in a promise, preventing (or better said, not triggring) the callback execution.

image

Maybe this is related to #1686, or #690 (similar behavior, but different cause).

@AlexVarchuk
Copy link
Collaborator

@meden @meden Hi! thanks for bug reporting.
We'll fix that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants