[Bug][skywalking-client-js]broke when I request a cross domain request (arraybuffer) #12760
Unanswered
Mikey-Lucky
asked this question in
Q&A
Replies: 2 comments 10 replies
-
Why a cross domain is reported to us? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Search before asking
Apache SkyWalking Component
NodeJS Client Side Agent (apache/skywalking-client-js)
What happened
When I request a cross domain request,the console display that "Uncaught InvalidStateError: Failed to read the 'responseText' property from 'XMLHttpRequest': The value is only accessible if the object's 'responseType' is '' or 'text' (was 'arraybuffer')".The stack display the error is generated by ”Ajax Error Collection“.
What you expected to happen
index.js:1 Uncaught InvalidStateError: Failed to read the 'responseText' property from 'XMLHttpRequest': The value is only accessible if the object's 'responseType' is '' or 'text' (was 'arraybuffer').
at eval (index.js:1:6619)
at XMLHttpRequest.f (index.js:1:22756)
at XMLHttpRequest.eval (index.js:1:20573)
How to reproduce
let xhr= new XMLHttpRequest();
xhr.open('GET','...',true);// blocked by CORS
xhr.responseType = 'arraybuffer';
xhr.send();
Anything else
No response
Are you willing to submit a pull request to fix on your own?
Code of Conduct
Beta Was this translation helpful? Give feedback.
All reactions