Hacker News new | ask | show | jobs
by 6DM 2794 days ago
Do you have some examples or a link to a blog for what types of error cases you ran into and how you handled it?
1 comments

Unfortunately I don't have specific code examples. I was operating in stealth mode at the time and the code was closed source. I could dig some examples probably later today?

From memory, data might return normal json but with "" empty string instead of metric forecast but imperial forecast is there. Or the other way around. Or both empty. Or 0 values for variables that shouldn't be 0. Or error state json with not much info. Things like that.