Lurker News
Your app consumes a 3rd party api, the providers announce changes or sometimes they don't. You miss the announcements, now you are debugging at 2 am that if nothing was pushed why the app broke.

You debug it and find provider changed something in API. How'd you tackle that? Have you ever lived through pain of API drift? Who fixes that?
Do you have any solution?

Comments (5) 4 threads

emilss#
I have lived it, the solution is to just fix it asap, or, try something I made - unirouter.ai
huubhermsen#
It really depends on the type of API.

Is this a generic open source API? Than it's totally on you, you could jump on their repository page or socials and ask why this changed, they deliver this service to you free so don't "hold them responsible".
For contracted API's wether they're paid or free you should contact the maintainer directly to raise your issue.
For internal API's: I believe these should never be breaking and the responsibility for this is with the team maintaining them.

onion2k2 replies#
You miss the announcements..

If that happens, that means it's a you problem.
If they changed without an announcement, that probably means it's a them problem, but SLAs may mean it still isn't. If you're expecting free support and not paying anything it's still on you.
Do you have any solution?
First, write robust software that handles errors well. Your app should handle 4xx and 5xx errors properly, so if this happens things don't just crash and burn. You were alerted at 2am so I imagine you have this already.
Second, accept that APIs will fail. Sometimes it'll be a change, other times it'll be an outage, a lot of the time it'll be DNS. Write your software to cope with things being down. It's a pain, but tech isn't perfect.
Lastly, prefer vendors that version their APIs, or that promise backward-compatibility, or that inform you about changes properly and with plenty of notice.
(Absolutely reckless suggestion that I'd love to see someone do - hook Claude up to your telemetry system and build an agent that can figure out the problem, fix the code, and deploy it to production all by itself. Call it 'self-healing code' and raise millions to productize it.)

huubhermsen#
Thank god you're more awake than me and elaborated a bit more. Great addition!
Nalin_2408#
hmm, i would stop at deployment step in this and let a human loop in b/f deploying it. Detecting a change and then a pr on top of it sounds useful to me. you get, what changed, how it affects you and what is fix in 1 go

Have you had an API change slip past your existing monitoring, or has error handling generally been enough? how did you spot it and fixed it?

All comments shown.