badgen/badgen.net

404 error on all Codecov badges

Opened this issue ยท 4 comments

bokub commented

Hello @amio ๐Ÿ‘‹

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

image

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

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

bokub commented

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

@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.