Kaltura Troubleshooting: "403 Forbidden" Error on Kaltura Media Player


Problem


A screenshot of the "403 Forbidden" error message.When attempting to view a Kaltura video on a page in Canvas, only a black rectangle shows with the message "403 Forbidden (Rate Limit Exceeded). It's likely that you're seeing this on a page that has many embedded Kaltura videos on it (more than 10). 

Cause

Canvas limits the number of API requests that can be made at any given time by a user visiting a web page. While this "throttling" helps Canvas manage server load, it may adversely affect users visiting pages that have many Kaltura videos embedded on them, rendering some videos unviewable. So although Kaltura video players are showing the error, it's really a Canvas setting that's creating the issue.

So far in our testing, it appears this affects people who use Chrome and Safari. It appears as though Chrome is more willing to send these API requests for embedded videos simultaneously or really close to each other, so it hits Canvas's rate limit. It may be the case, then, that Firefox spaces them out or sends them in series or something and is able to stay under that limit, since the "quota" for API requests replenishes in real time.  

Solutions


If you're responsible for the page's content, you may want to also consider embedding fewer videos on one page. That's not always possible, of course. For example, if you create a Canvas quiz with embedded videos asking students to embed videos in response, SpeedGrader will show you all questions and answers on one page, possibly leading to this error on multiple players. (The way SpeedGrader displays responses isn't configurable.) 

Otherwise, to resolve the issue, you can try one of two solutions.

1. Reload the iFrame

  1. On the page with the error messages, right-click one of the boxes and:
    1. Within Chrome, select Reload Frame.
    2. Within Firefox, select This Frame > Reload Frame.
    3. Within Safari, select Open Frame in New Tab.
  2. Repeat for any other videos you need to watch.

2. Try Firefox

If you haven't tried already, see if the page loads better in Firefox. You may experience fewer 403 errors, or none, depending on the number of embedded videos on the page.

If you still have questions or need additional assistance, feel free to contact us at kaltura@ucsd.edu.