Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

experimental Fetch Polyfill - 'getReader' of undefined #8441

Closed
DanieleDiLucido opened this issue Aug 28, 2020 · 1 comment
Closed

experimental Fetch Polyfill - 'getReader' of undefined #8441

DanieleDiLucido opened this issue Aug 28, 2020 · 1 comment
Labels
experiment: fetch polyfill Issues when using experimentalFetchPolyfill type: bug

Comments

@DanieleDiLucido
Copy link

Current behavior:

Is impossible to reproduce video contents with Shaka Player when experimentalFetchPolyfill is enabled.
Shaka player throws the following error:

ERROR: Shaka Error NETWORK.HTTP_ERROR (https://storage.googleapis.com/shaka-demo-assets/angel-one/dash.mpd,TypeError: Cannot read property 'getReader' of undefined,0)

  • experimentalFetchPolyfill: true
    KO

  • experimentalFetchPolyfill: false
    OK

Test code to reproduce

describe('Test player', () => {
  it('VOD', () => {
    cy.visit('https://shaka-player-demo.appspot.com/demo/#audiolang=it-IT;textlang=it-IT;uilang=it-IT;asset=https://storage.googleapis.com/shaka-demo-assets/angel-one/dash.mpd;panel=HOME;build=uncompiled');
    cy.wait(60000);
  });
});

Versions

Cypress v5.0.0

@bahmutov bahmutov added experiment: fetch polyfill Issues when using experimentalFetchPolyfill type: bug labels Aug 31, 2020
@bahmutov
Copy link
Contributor

@DanieleDiLucido the experimental fetch polyfill does not support streaming responses, see https://www.cypress.io/blog/2020/06/29/experimental-fetch-polyfill/#limitations

I suggest waiting a few days when we release the new network stubbing API with cy.route2 that might solve mocking needs without the fetch polyfill. The PR #4176 has already been merged into develop and will be released within a day or two.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
experiment: fetch polyfill Issues when using experimentalFetchPolyfill type: bug
Projects
None yet
Development

No branches or pull requests

2 participants