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
ReferenceError: XMLHttpRequest is not defined
at XXX/node_modules/dicomweb-client/build/dicomweb-client.js:501:65
at new Promise (<anonymous>)
at DICOMwebClient._httpRequest (/Users/tangguoting/tmu/shh-pacs/koa/node_modules/dicomweb-client/build/dicomweb-client.js:500:16)
at DICOMwebClient._httpGet (/Users/tangguoting/tmu/shh-pacs/koa/node_modules/dicomweb-client/build/dicomweb-client.js:619:21)
at DICOMwebClient._httpGetMultipartApplicationDicom (/Users/tangguoting/tmu/shh-pacs/koa/node_modules/dicomweb-client/build/dicomweb-client.js:908:21)
at DICOMwebClient.retrieveInstance (/Users/tangguoting/tmu/shh-pacs/koa/node_modules/dicomweb-client/build/dicomweb-client.js:1530:23)
at /Users/tangguoting/tmu/shh-pacs/koa/app.js:51:42
at dispatch (/Users/tangguoting/tmu/shh-pacs/koa/node_modules/koa-compose/index.js:42:32)
at /Users/tangguoting/tmu/shh-pacs/koa/node_modules/koa-router/lib/router.js:261:18
at dispatch (/Users/tangguoting/tmu/shh-pacs/koa/node_modules/koa-compose/index.js:42:32)
And I found that it could be solved by modifing the node_modules/dicomweb-client/build/dicomweb-client.js ,
with adding const XMLHttpRequest = require('xhr2').XMLHttpRequest; in first line.
Version:
"dicomweb-client": "0.10.4"
"xhr2": "^0.2.1"
The text was updated successfully, but these errors were encountered:
This makes sense - I don't think people have used this lib in node, but making it compatible would be great. Do you think you could make a PR and also add a test or tests for it?
I can found the error on localhost when I try to retrieve instance
My code is
The erros is
And I found that it could be solved by modifing the
node_modules/dicomweb-client/build/dicomweb-client.js
,with adding
const XMLHttpRequest = require('xhr2').XMLHttpRequest;
in first line.Version:
The text was updated successfully, but these errors were encountered: