OHIF / Viewers

OHIF zero-footprint DICOM viewer and oncology specific Lesion Tracker, plus shared extension packages
https://docs.ohif.org/
MIT License
3.12k stars 3.29k forks source link

[Bug] 406 ERROR while getting series from dicomweb #3726

Open xenonwellz opened 11 months ago

xenonwellz commented 11 months ago

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

  1. Setup MS Dicom Server with K8s
  2. Setup congig/default.js to use the dicom server
  3. 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

harmydiano commented 9 months ago

Experiencing similar issues. Has anyone else experienced something similar and what is the solution?

sedghi commented 8 months ago

What is the config you are using

harmydiano commented 8 months ago

The config endpoint is pointed to a Microsoft Dicom server

sedghi commented 8 months ago

If you have reproducible steps (or you make your server public) I can look

harmydiano commented 8 months ago

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

franc00018 commented 8 months ago

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. `

andrei0807 commented 1 month ago

me too how to solve this issue?

moalsad commented 1 month ago

Use multipart/related; type="application/octet-stream" for the accept header. Note that the type parameter value will usually require quoting.