dicomweb-server icon indicating copy to clipboard operation
dicomweb-server copied to clipboard

404 Not Found with Get frames request.

Open taivnn9 opened this issue 2 years ago • 11 comments
trafficstars

I have using POST dcm4che stowrs to upload my dicom file, process was success. image image

Study already on my server & DB. image image

But get frames not work. image image

Please tell me why^^ thank for help

taivnn9 avatar Mar 17 '23 16:03 taivnn9

You can check with public data to see if there's something unique about the data you are using. You can also try accessing the same frame endpoint using curl to see if there's a server side issue.

pieper avatar Mar 17 '23 16:03 pieper

Hi. My Dicom file work fine with Weasis & RadiAnt https://www.rubomedical.com/dicom_files/dicom_viewer_0003.zip

I debug that exception in here:

image image

Server not found But object.dcm already exist in DB?? image

do you know why? thank!

taivnn9 avatar Mar 17 '23 18:03 taivnn9

hard to tell from here, but it looks like you are on the right path debugging. See if you can trace through data that works and compare what happens with this data.

pieper avatar Mar 17 '23 22:03 pieper

I think that API trying to download dcm file via http request and they not found the resource, what does this mean "trace through data that works"?

taivnn9 avatar Mar 18 '23 13:03 taivnn9

what does this mean "trace through data that works"?

I mean that the server should be working generally for sample data, so you can use a debugger to step through a case where it works vs a case where it doesn't work and compare the difference. If it's not working for any data then perhaps there's something wrong with the installation.

pieper avatar Mar 18 '23 14:03 pieper

Unfortunately, this happens with all my datasets. :( I reproduce with many dicom files. Do you thing that issue related DNS?

The EAI_FAIL is related to not being able to resolve the DNS. https://stackoverflow.com/a/70714669

{"message":"getaddrinfo EAI_FAIL admin:admin@localhost","stack":"Error: getaddrinfo EAI_FAIL admin:admin@localhost\n    at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:109:26)","errno":-3004,"code":"EAI_FAIL","syscall":"getaddrinfo","hostname":"admin:admin@localhost"}

taivnn9 avatar Mar 18 '23 16:03 taivnn9

That sounds likely, yes. It looks like you are on windows, and I'm not sure that this server has ever been tested there. You could try creating a small linux VM to test how things are meant to work and then see which steps are different on windows.

pieper avatar Mar 18 '23 16:03 pieper

Yes, thank . I tried on MacOS have same error. do you have work on this code. could you provide to me version of Apache CouchDB you're using it.

Maybe version related? Both my Windows & Mac using v. 3.3.1. Screen Shot 2023-03-19 at 16 30 56

taivnn9 avatar Mar 19 '23 09:03 taivnn9

To be honest, I haven't run the server myself in a while and I guess we didn't track the couchdb version, but it would have been whatever was current at the time. It looks like you are on the right track to solving this and if it's a version issue or something else we need to document a PR would be very welcome.

pieper avatar Mar 19 '23 18:03 pieper

Yes. Thank a lot for your help. Let me find out root cause

Vào 01:38, T.2, 20 Th3, 2023 Steve Pieper @.***> đã viết:

To be honest, I haven't run the server myself in a while and I guess we didn't track the couchdb version, but it would have been whatever was current at the time. It looks like you are on the right track to solving this and if it's a version issue or something else we need to document a PR would be very welcome.

— Reply to this email directly, view it on GitHub https://github.com/dcmjs-org/dicomweb-server/issues/88#issuecomment-1475356665, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFZL54O23QEUO4SMGI5VMXLW45HCHANCNFSM6AAAAAAV6XHL4Y . You are receiving this because you authored the thread.Message ID: @.***>

taivnn9 avatar Mar 21 '23 02:03 taivnn9

hi @taivnn9, sorry for the late response. We are using the dockerized version of the server with ePad. I'd be happy to try one of your DICOMs if you can share a deidentified version with me. Currently, we use ibmcom/couchdb3:latest version of dockerized couchdb, but other version 3 couchdb should be fine. Are you using dicomweb-server in the dockerized form? If yes, you shouldn't use localhost. inside the dicomweb-server container, localhost resolves to the container, not to your host.

emelalkim avatar Mar 21 '23 05:03 emelalkim