badgen.net icon indicating copy to clipboard operation
badgen.net copied to clipboard

Chrome web store badge doesn't always show the "K"

Open bokub opened this issue 2 years ago • 4 comments

Hello @amio !

This badge says "4" when I open it in my browser, when it's supposed to say "4K".

image However, it says "4K" when I include it on GitHub using markdown, which is very weird...

image


Here is the dynamic badge. Right now, I see "4K", but maybe it will say "4" in a few hours 🤷 badge

Do you have an explanation for this weird behavior? Thanks!

bokub avatar Jul 20 '22 05:07 bokub

That's strange 🤔

amio avatar Aug 27 '22 04:08 amio

Yes, very strange!

Do you also see "5" when you open the link ?

bokub avatar Aug 27 '22 07:08 bokub

I can see the "5K" in https://flat.badgen.net/chrome-web-store/users/hpoiflhmfklhfcfpibmdmpeonphmdbda

amio avatar Aug 27 '22 08:08 amio

Screenshot_20220827_111711_com.android.chrome.png

So weird, I see 5. I'm on mobile, on a different network since last time...

bokub avatar Aug 27 '22 09:08 bokub

Hello !

It looks like this bug it still going on, and it's now visible directly on the homepage of badgen.net, where I can read "200 users", while there are actually 200k users

image

The issue might be coming from webextension-store-meta, which looks abandonned by its maintainer

bokub avatar Feb 09 '23 14:02 bokub

Oh, I think I understand now ! The result seems to depend on the request location

For example,

  • with a proxy based in New York, I see 200K
  • with a proxy based in Francfort, I see 200

Maybe the chrome web store response depends on the location, and this is not properly handled by webextension-store-meta for European countries...

bokub avatar Feb 09 '23 15:02 bokub

As a temporary fix, I created a runkit endpoint to fix this badge:

https://runkit.com/bokub/chrome-web-store-users

Example badge using this endpoint: Chrome users URL: https://badgen.net/runkit/bokub/chrome-web-store-users/hpoiflhmfklhfcfpibmdmpeonphmdbda

bokub avatar Apr 22 '23 11:04 bokub

Thanks @bokub ! I'm doing an refactor https://github.com/badgen/badgen.net/pull/579 , I'll integrate the fix in the migration.

amio avatar Apr 24 '23 06:04 amio

This should get fixed by now, thanks @bokub !

amio avatar Jun 10 '23 02:06 amio