originally posted in:BungieNetPlatform
View Entire Topic
The majority of the recent threads I've seen in this forum have been about stuff not working, which going by post timestamps, has been mostly due to applications/developers trying to access the API during maintenance windows. If you can't log into Destiny, chances are the APIs might not be working either. This is quite normal really and Bungie do make the effort to tell everyone that stuff is going offline up to a week in advance. The best thing you can do is put checks in place to catch when data isn't returning what it should be.
Here are a few things you can do that will save you problems later:
- start with a request timeout fallback for when their servers are under heavy load (ie whenever DestinyTracker releases another fantastic API crunching tool).
- make sure to check the returned data is JSON when you are expecting JSON because sometimes you might get a html page
- make sure that anything that will be output to a screen has some sort of check or default value as you might find yourself with a null definition etc
- try to disable API access when you know maintenance is underway
That being said, I really would like to see some kind of static url feed where developers could get information about maintenance windows as you could use that to know when your app should disable API access rather than through catching exceptions.
English
-
lol don't be blaming us,.