LasseRafn / ui-avatars

MIT License
1.05k stars 138 forks source link

some background values stopped working #51

Closed nivpenso closed 3 years ago

nivpenso commented 3 years ago

Hi,

We are using the ui-avatar service for a long time now and since today's morning, we are seeing that when we are making a GET request with specific values we don't get a response

You can check it here: https://ui-avatars.com/api/?name=First%20Last&rounded=true&background=3f5310&color=fff

When changing the background color to: 2C3E50 it seems that everything is working fine. https://ui-avatars.com/api/?name=First%20Last&rounded=true&background=2C3E50&color=fff

stof commented 3 years ago

I faced the same. It looks like the issue is related to lowercase vs uppercase letters for the hex code: uppercase works for background while lowercase seems to break.

stof commented 3 years ago

Maybe it is a matter of having some URLs corrupted in the cache though, and the uppercasing is just luck.

LasseRafn commented 3 years ago

Very odd! I am investigating.

LasseRafn commented 3 years ago

Cloudflare cache caused a image to be cached at a point where things were down.. Not sure why a error code is cached 🤔 but anyway, I will look into a solution that does not require manual checkup. For now purged the cache. I'm sorry!

Should be up in a few minutes after Cloudflare purge finishes, I will keep an eye on the link to make sure it works later

LasseRafn commented 3 years ago

Browser cache might cause it to render the same .... but it IS up. Looking into a way to invalidate browser cache somehow (??)

CleanShot 2020-10-15 at 19 04 42