dk
dk5w ago

Issue with Oak, Superdeno / Superagent after going from Deno 2.3 to 2.4

Hi, I've been using Oak + Superdeno (Superagent) with relatively ok DX so far. Recently after upgrading from Deno 2.3 to 2.4, all my tests failed because of this:
error: Error: Request has been terminated
Possible causes: the network is offline, Origin is not allowed by Access-Control-Allow-Origin, the page is being unloaded, etc.
at Test.Request.crossDomainError (https://jspm.dev/npm:superagent@6.1.0!cjs:674:13)
at XMLHttpRequestSham.xhr.onreadystatechange (https://jspm.dev/npm:superagent@6.1.0!cjs:777:19)
at XMLHttpRequestSham.xhrReceive (https://deno.land/x/superdeno@4.9.0/src/xhrSham.js:115:29)
at https://deno.land/x/superdeno@4.9.0/src/xhrSham.js:62:21
at Object.xhr.onreadystatechange (https://deno.land/x/superdeno@4.9.0/src/xhrSham.js:211:7)
at XMLHttpRequestSham.xhrSend (https://deno.land/x/superdeno@4.9.0/src/xhrSham.js:336:20)
at eventLoopTick (ext:core/01_core.js:178:7)
at async XMLHttpRequestSham.send (https://deno.land/x/superdeno@4.9.0/src/xhrSham.js:61:7)
error: Error: Request has been terminated
Possible causes: the network is offline, Origin is not allowed by Access-Control-Allow-Origin, the page is being unloaded, etc.
at Test.Request.crossDomainError (https://jspm.dev/npm:superagent@6.1.0!cjs:674:13)
at XMLHttpRequestSham.xhr.onreadystatechange (https://jspm.dev/npm:superagent@6.1.0!cjs:777:19)
at XMLHttpRequestSham.xhrReceive (https://deno.land/x/superdeno@4.9.0/src/xhrSham.js:115:29)
at https://deno.land/x/superdeno@4.9.0/src/xhrSham.js:62:21
at Object.xhr.onreadystatechange (https://deno.land/x/superdeno@4.9.0/src/xhrSham.js:211:7)
at XMLHttpRequestSham.xhrSend (https://deno.land/x/superdeno@4.9.0/src/xhrSham.js:336:20)
at eventLoopTick (ext:core/01_core.js:178:7)
at async XMLHttpRequestSham.send (https://deno.land/x/superdeno@4.9.0/src/xhrSham.js:61:7)
When I switch back to Deno 2.3, everything works fine again. Before going deeper into the details, I just wish to ask if anyone out there noticed the same issue? Thanks a lot for any insight / sharing!
1 Reply
marvinh.
marvinh.5w ago
Can you file an issue for that https://github.com/denoland/deno/issues ?
GitHub
denoland/deno
A modern runtime for JavaScript and TypeScript. Contribute to denoland/deno development by creating an account on GitHub.

Did you find this page helpful?