-
-
Notifications
You must be signed in to change notification settings - Fork 582
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
Unhandled Exception on Request Failure to Resolve $ref #1053
Comments
Hello there! Thanks for the ticket. There's a PR which is about to be released which will essentially be replacing the entire reference resolution implementation (deprecating The next release of
I'm going to close this given it will change in #1049 (wherein |
Hello @Julian , thanks for the response. I've check the referencing library, that looks awesome since overriding reference resolve can be overridden with specific object. But, when will the referencing merged to master? As of now, is it safe to use it in production? |
Great! Glad to hear. It'll likely be merged in the next week or so, and released in a beta at that moment, and finally in a full release shortly thereafter if a short time passes without critical issues. |
Background
No try catch on request call causing unhandled exception which can cause application error. See image below for server log on remote resolve error occurrence. In this case, one of ref API returns HTTP 502 on JSON Schema $ref resolve process
Proposal to Resolve
Looking at piece of code from this library on https://github.com/python-jsonschema/jsonschema/blob/main/jsonschema/validators.py#L975
Try/Catch should be wrapping this part of code
to ensure that error on request (e.g. 5xx HTTP response) can be handled gracefully.
If this is OK, I'd be glad to open PR for fix
The text was updated successfully, but these errors were encountered: