You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Global error: Uncaught TypeError: Cannot read property 'pct' #296
I debugged this with someone earlier today, and in our case the issue was that some tests were not properly resetting the pretender instance so window.XMLHttpRequest was the FakeRequest object that Pretender installs, which does not respect the responseType property.
Specifically, someone was calling this.server = setupMirage() in their test, but never this.server.shutdown().
Activity
GCheung55 commentedon Nov 7, 2020
@vignesh20794 would you mind creating a repo to reproduce this issue? That would be very helpful to debug.
gobeli commentedon Dec 2, 2020
I run into the same issue on this Repo: https://github.com/opensource-challenge/opensource-challenge-client/tree/dependency-updates (branch
dependency-updates) somehow thexhr.responseis a string which would need to be parsed before accessing...rwjblue commentedon Jul 20, 2021
I debugged this with someone earlier today, and in our case the issue was that some tests were not properly resetting the pretender instance so
window.XMLHttpRequestwas theFakeRequestobject that Pretender installs, which does not respect theresponseTypeproperty.Specifically, someone was calling
this.server = setupMirage()in their test, but neverthis.server.shutdown().kategengler commentedon Jul 20, 2021
😭 That explains so very much