-
-
Notifications
You must be signed in to change notification settings - Fork 124
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
Docker Layers and Metadata Badges Report HTTP 400 in Production #443
Comments
Just did a check, it seems fine |
This appears to only effect requests coming from the Eastern/Northeastern USA. I've VPNed to Western USA, Mexico, Canada, Germany, etc... and it works. My assumption is that one of the Vercel edge delivery data centers (located in the Eastern US) is having problems. |
There is no secret required to query Docker layers or metadata, so I doubt that this particular problem would be contributing to the rogue 400 errors being seen in the Northeastern US. It could, however, be indicating a bigger problem in general with vercel. |
@amio, any idea on how we can fix these 400 errors? I can try to restructure the code to see if that helps. Here is a bit more information so that you can check the Vercel logs. General Headers
Response Headers
Request Headers
|
Couldn't reproduce it locally, but I just deployed an instance in sfo region, would you take a look? @lucashalbert |
@amio, the SFO region instance loads correctly. Do you have the IAD1 region direct URL like you have for the SFO region? |
@lucashalbert Here is the iad deployment layers and metadata is broken 🤔 |
Do you think redeploying to the iad region might help, or is this possibly something that Vercel would assist in troubleshooting? It seems more likely to be a problem with their infrastructure in iad than a problem with the app. |
@styfle It looks like something wrong with iad region: docker/layers and docker/metadata badge are broken only in iad region, for the error log: Could it be some network issue with connection to upstream (https://auth.docker.io or https://registry.hub.docker.com)? |
@amio That's what it sounds like. Maybe they blocked the Vercel IP in IAD for some reason? The IP address is not static so its strange to see this happening for so long. |
@styfle I've seen same error happens on other badge occasionally: but this badge seems fine while I check: same badge from iad region, still fine while I check: |
Perhaps the docker or github API is rate limiting if there are more people visiting from the IAD region? |
Fair guess 👍 let me do a check |
According to this https://docs.github.com/en/free-pro-team@latest/rest/overview/resources-in-the-rest-api#rate-limiting |
I just realized the screenshot for your error says the request was for www.google-analytics.com, not GitHub or Docker. You could try wrapping that in a try/catch and see if its only GA affected or other upstream APIs too. |
The Docker Layers and Metadata Badges report HTTP 400 errors in production on badgen.net, but not in the development environment.
To test the dev environment, simply clone the https://github.com/badgen/badgen.net.git repo, build the master branch, and run.
Badgen.net/docker environment
Dev environment
The text was updated successfully, but these errors were encountered: