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

Retry on "Could not read schema from HTTP, response status is 503 Service Temporarily Unavailable" #359

Open
mrutkows opened this issue Dec 9, 2022 · 2 comments

Comments

@mrutkows
Copy link

mrutkows commented Dec 9, 2022

Recently, I randomly started to encounter the 503 error when validating against local schemas (ByteLoader) that appears to reference remote schemas (over http)... I did not realize I was for some time that this error was likely due to being on an unreliable Wifi network...

Would there be a way to add a "retry" (default 3x or configurable) to any external HTTP loads of ref. schemas?

OR even better, allow for me to tell the loader to NOT find the schemas at their remote (http) locations, but instead find them locally (i.e., I would likely include them as a Go embedded resource along with the base schemas that reference them)?

@mrutkows
Copy link
Author

mrutkows commented Dec 9, 2022

The second option... i.e., to effectively tell the loader to resolve http to local is highly desirable in "closed" build systems/environments where external network access is intentionally shut off.

@jsteenb2
Copy link

+1 to the resolve http to local or embedded. I'd be happy to create a PR for this would be accepted upstream?

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

No branches or pull requests

2 participants