Menu

When the Provider Is Down, Say So: Honest Error Messages Instead of Spinners
πŸ“°

When the Provider Is Down, Say So: Honest Error Messages Instead of Spinners

DEV Community: phpΒ·Mobeen AhmedΒ·10 days ago
#bSdxwehM
#devto#dev#provider#visitor#message
Reading 0:00
15s threshold

There is a moment every tool-site owner dreads: your provider's API goes down, and a visitor is staring at your page wondering whether anything is happening. For a long time, my answer to that moment was a spinning loader. It felt polite. It was not. A spinner says "something is happening" when nothing is, and after thirty seconds the visitor leaves β€” not because the tool failed, but because I would not tell them it had.

I run ramrom.io, a small video downloader built in plain PHP on shared hosting. Behind the scenes it leans on third-party provider APIs to resolve TikTok, Instagram, Facebook and YouTube links. Those providers go down more often than anyone admits. Some days they are slow, some days they return a blank response, and some days they cheerfully reply "Service is busy" to every single request. I cannot fix any of that from my side. What I can control is what the visitor sees while it is happening.

So I changed the rule: the page never waits in silence.…

Continue reading β€” create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.