Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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?


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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: