badgen / badgen.net

Fast badge service
https://badgen.net
ISC License
1.43k stars 124 forks source link

404 error on all Codecov badges #664

Open bokub opened 1 month ago

bokub commented 1 month ago

Hello @amio :wave:

It looks like all codecov badges show a 404.... https://badgen.net/codecov

image

juozasmiskinis commented 4 weeks ago

Might be related, so I'm posting here. GitLab badges also return 401: https://flat.badgen.net/gitlab

jdegand commented 3 weeks ago

Both gitlab and codecov are not present in the API folder.

bokub commented 3 weeks ago

@jdegand They have been moved to pages/api (#615 & #631)

jdegand commented 3 weeks ago

@bokub I didn't know that and I made another issue to update the README docs.

The liveBadgeList has gitlab commented out. codecov is also not part of the list.

I tested shields for codecov of babel and it worked. I don't believe the issue is with the codecov endpoint.

I looked into the HTTP requests. Going to https://badgen.net/crates or /codecov seems to send a HTTP request without the params. This first request always returns a 404. That this isn't avoided leads me to believe the http logic could be improved. I also noticed some useEffects being used without dependency arrays.