Getting 403 errors when playing video; but most other api calls seem to work fine.

Avatar image for ev77
ev77

136

Forum Posts

0

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

#1  Edited By ev77

Hey, I'm creating a new tvOS app and everything worked fine for a while. But as of late it seems I've been able to only play a single video (if even that) before getting 403 errors. All the other calls for getting videos, getting shows, getting saved times, etc all work and return just fine; only when I try to play a video do I run into issues.

Any help on what might be causing this?

Thanks.

Avatar image for protome
Protome

543

Forum Posts

1

Wiki Points

0

Followers

Reviews: 5

User Lists: 4

@ev77:

This is a month old so you might have fixed this by now but if not are you using the URL directly from the response object or are you sending the API key along with the request? I had the same issue and realised it was because I wasn't appending my Key to the video URL so was getting a 403 (Forbidden)

eg:

https://static-giantbombvideo.cbsistatic.com/vr/video/TR_gravityrushtgs_091511_3500.mp4 wont work and will return a 403

https://static-giantbombvideo.cbsistatic.com/vr/video/TR_gravityrushtgs_091511_3500.mp4?api_key=[API_KEY] will return the video