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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unparseable json response for lines of code badge #6637

Closed
1 of 3 tasks
hongbo-miao opened this issue Jun 17, 2021 · 2 comments
Closed
1 of 3 tasks

Unparseable json response for lines of code badge #6637

hongbo-miao opened this issue Jun 17, 2021 · 2 comments
Labels
question Support questions, usage questions, unconfirmed bugs, discussions, ideas

Comments

@hongbo-miao
Copy link

Are you experiencing an issue with...

馃 Description

The lines of code badge works before, however, since several days ago, it shows: unparseable json response.

Issue badge screenshot:
image

Live version:
Lines of code

馃敆 https://img.shields.io/tokei/lines/github/Hongbo-Miao/hongbomiao.com

@hongbo-miao hongbo-miao added the question Support questions, usage questions, unconfirmed bugs, discussions, ideas label Jun 17, 2021
@chris48s
Copy link
Member

Hello. This is happening because https://tokei.rs/b1/github/Hongbo-Miao/hongbomiao.com it is returning a non-JSON response

curl -H "Accept: application/json" "https://tokei.rs/b1/github/Hongbo-Miao/hongbomiao.com"

If I call another URL like

curl -H "Accept: application/json" "https://tokei.rs/b1/github/badges/shields"

that returns JSON as expected. This appears to be an issue with the tokei.rs service so can you raise an issue with them please.

@hongbo-miao
Copy link
Author

Thanks @chris48s ! Created at XAMPPRocky/tokei#794

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Support questions, usage questions, unconfirmed bugs, discussions, ideas
Projects
None yet
Development

No branches or pull requests

2 participants