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

Fix for unhandled AbortError thrown during cancelAjax #2063

Merged
merged 2 commits into from
Sep 13, 2020
Merged

Fix for unhandled AbortError thrown during cancelAjax #2063

merged 2 commits into from
Sep 13, 2020

Conversation

sundayz
Copy link
Contributor

@sundayz sundayz commented Sep 13, 2020

Short description of changes:

Cancel the current ajax request's ReadableStream during wavesurfer destroy to prevent unhandled AbortError (which was breaking tests).

Firefox only bug?

Related Issues and other PRs:

Closes #2042

@thijstriemstra
Copy link
Contributor

Thanks! Please add a changelog entry and go ahead and squash merge it.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.03%) to 80.671% when pulling 4acc925 on sundayz:fix-tests into 63e8742 on katspaugh:master.

@sundayz
Copy link
Contributor Author

sundayz commented Sep 13, 2020

no more abort errors in travis/appveyor either so I guess it worked.

@sundayz sundayz merged commit 3a71002 into katspaugh:master Sep 13, 2020
@thijstriemstra
Copy link
Contributor

no more abort errors in travis/appveyor either so I guess it worked.

Yep. And a local npm run test on ubuntu 20 succeeds (where before it also encountered this AbortError issue). I'm not sure what makes the build fail on travis/appveyor but I don't consider it a release blocker since the tests work locally.

marizuccara pushed a commit to marizuccara/wavesurfer.js that referenced this pull request Nov 28, 2020
sandiz pushed a commit to sandiz/wavesurfer.js that referenced this pull request Sep 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Tests fail because of ajax AbortError
3 participants