rest - SoundCloud Track List API Returns 504 -
rest - SoundCloud Track List API Returns 504 -
for past couple of years our app has been using soundcloud's api without issue. we've started running 504 errors when trying request user's track list. request user's metadata fine, track list homecoming 504 80% of time now.
has else experienced this? soundcloud engineers able give support?
a sample url is: https://api.soundcloud.com/users/1887081/tracks.json?client_id=[our_app_id]
the docs phone call can found here: https://developers.soundcloud.com/docs/api/reference#tracks
example response error:
that user id, 1887081 has 78 tracks. length of search query , fetch longer middleware/api willing wait for. have 2 recommendations:
write back upwards , inquire them optimize backend, or query/index. in lieu of that, increment timeout.
you should utilize pagination. limit=10
, offset=0
fetch first 10. offset=10
fetch next page, etc.
also, if production level app on end, recommend utilize api monitoring tool runscope. can automated scheduled monitoring simple assertions (no programming), such checking status 200, or specific content know should there in json, etc. way, when things go south, or performance degrades in way, you'll know ahead of time, rather having figure out after app breaks because of 403s.
api rest soundcloud
Comments
Post a Comment