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

Callback function not called on error #2195

Closed
Nareznoy opened this issue Oct 24, 2022 · 2 comments
Closed

Callback function not called on error #2195

Nareznoy opened this issue Oct 24, 2022 · 2 comments

Comments

@Nareznoy
Copy link

Nareznoy commented Oct 24, 2022

Describe the bug
When an invalid reference to the json file is entered, the callback function is not called.

Expected behavior
The documentation says that on errors, a callback function is called with the error as the first argument.
image

Minimal reproducible OpenAPI snippet

<script src="https://cdn.redoc.ly/redoc/latest/bundles/redoc.standalone.js">
</script>

<div id="redoc-container">
</div>

<script>
    Redoc.init('https://petstore.swagger.io/v2/swaggerERROR.json', {
        scrollYOffset: 50
    }, document.getElementById('redoc-container'), function(error) {
        var str = error;
    })
</script>
@AlexVarchuk
Copy link
Collaborator

Hi @Nareznoy, thank you for the issue. I believe it is the same #2025 and it was fixed in #2182. It will be included in the next release.

@Nareznoy
Copy link
Author

Thanks @AlexVarchuk! Also, can you tell me, please, when is the next release date planned?

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

No branches or pull requests

2 participants