appsembler / edx-platform

Appsembler Tahoe fork of Open edX. Branches: `main` for Juniper and `hawthorn/main` for Hawthorn.
https://appsembler.com/products/tahoe/
GNU Affero General Public License v3.0
13 stars 15 forks source link

ENG-97 Try/Catch around more of the onYouTubeIframeAPIReady code to retry #1370

Closed bryanlandia closed 1 year ago

bryanlandia commented 1 year ago

Change description

Still getting onYouTubeIframeAPIReady TypeErrors once in a while when loading YouTube videos in courseware.

When I reproduced it, I didn't see any of the JS console messages that I put in, like

console.error('Error while trying to resolve the Deferred object responsible for calling OnYouTubeIframeAPIReady callbacks.');
console.error('window.onYouTubeIframeAPIReady is ' + window.onYouTubeIframeAPIReady);

so the try/catch I put in to retry the function wasn’t getting executed at least in this case.

This PR:

Type of change

Related issues

https://appsembler.atlassian.net/browse/ENG-97

Checklists

Development

Security

Code review

github-actions[bot] commented 1 year ago

Checking git merge conflicts against https://github.com/edx/edx-platform.git

Comparing with open-release/nutmeg.master
Benchmark conflicts with main 299
Current conflicts 299
Summary Good work! No added conflicts.
Comparing with master
Benchmark conflicts with main 317
Current conflicts 317
Summary Good work! No added conflicts.