Viewers
Viewers copied to clipboard
[Bug] 406 ERROR while getting series from dicomweb
Describe the Bug
https://server-url.com/v1/studies/{study_uid}/series.
while hitting this endpoint, I get a 406 error. I noticed the accept headers Accept: application/dicom+json, multipart/related; type=application/octet-stream
but if i try to send the request with the following accept header Accept: application/dicom+json
The request sends successfully.
Steps to Reproduce
- Setup MS Dicom Server with K8s
- Setup congig/default.js to use the dicom server
- Open the viewer
The current behavior
The page keeps showing the loading screen.
The expected behavior
The page should open the viewer with the images for the selected study.
OS
macOS Ventura
Node version
18.12.1
Browser
Chrome 117.0.5938.149
Experiencing similar issues. Has anyone else experienced something similar and what is the solution?
What is the config you are using
The config endpoint is pointed to a Microsoft Dicom server
If you have reproducible steps (or you make your server public) I can look
Here is the link http://20.62.248.61:3000/viewer?StudyInstanceUIDs=1.3.6.1.4.1.34656.2.30.90.22.677.202312221549188972
I'm having a similar issue. Requested Accept Header from OHIF viewer for the studies/.../series endpoint is application/dicom+json, multipart/related; type=application/octet-stream
and this results in error 400. If I copy the exact same query with application/dicom+json
it works.
`
me too how to solve this issue?
Use multipart/related; type="application/octet-stream"
for the accept header. Note that the type parameter value will usually require quoting.