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

Badge is not working properly #8841

Closed
MiChaelinzo opened this issue Jan 23, 2023 · 3 comments
Closed

Badge is not working properly #8841

MiChaelinzo opened this issue Jan 23, 2023 · 3 comments
Labels
question Support questions, usage questions, unconfirmed bugs, discussions, ideas

Comments

@MiChaelinzo
Copy link

MiChaelinzo commented Jan 23, 2023

Are you experiencing an issue with...

shields.io

馃悶 Description

Website badge seems to always says it's DOWN even though my website is ONLINE or UP
Twitter badge always have UNPARSEABLE JSON RESPONSE recently

馃敆 Link to the badge

Website

&
Twitter Follow

馃挕 Possible Solution

No response

@MiChaelinzo MiChaelinzo added the question Support questions, usage questions, unconfirmed bugs, discussions, ideas label Jan 23, 2023
@chris48s
Copy link
Member

There are 2 issues here.

One is about the twitter badge. This is a duplicate of #8837 You can read more there

With the website badge, if I request https://beacons.ai/cyberworld in a browser, I get a valid page, but if I call it using curl --include "https://beacons.ai/cyberworld" I get a 403 page presenting a CloudFlare JS challenge. We'll probably be getting the same. I guess you've got one of these features enabled: https://developers.cloudflare.com/fundamentals/get-started/concepts/cloudflare-challenges/#available-products . We consider the a 403 as 'down'

// We consider all HTTP status codes below 310 as success.
isUp = statusCode < 310

To use this badge you would need to have an endpoint that will respond with a 200 to a machine client.

@MiChaelinzo
Copy link
Author

I cannot remove the CloudFlare JS challenge since it can prevent any DDOS in my website.

@chris48s
Copy link
Member

Then that badge will not work for your use-case.

If you want an uptime badge for your site, you might be able to find another service that negotiates the challenge. I will mention nodeping because they sponsor us and we also have badges for them. I also think upptime is really cool.

That said, you may find you have the exact same issue with other services too. If you configure CloudFlare to block bot traffic then one of the tradeoffs is that services which rely on visiting your website with a bot won't work 馃し

@chris48s chris48s closed this as not planned Won't fix, can't repro, duplicate, stale Jan 23, 2023
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