Viewers icon indicating copy to clipboard operation
Viewers copied to clipboard

[Bug] 406 ERROR while getting series from dicomweb

Open xenonwellz opened this issue 1 year ago • 8 comments

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

xenonwellz avatar Oct 16 '23 13:10 xenonwellz

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

harmydiano avatar Dec 25 '23 16:12 harmydiano

What is the config you are using

sedghi avatar Jan 09 '24 17:01 sedghi

The config endpoint is pointed to a Microsoft Dicom server

harmydiano avatar Jan 10 '24 14:01 harmydiano

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

sedghi avatar Jan 12 '24 13:01 sedghi

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

harmydiano avatar Jan 12 '24 19:01 harmydiano

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

franc00018 avatar Feb 06 '24 15:02 franc00018

me too how to solve this issue?

andrei0807 avatar Aug 14 '24 12:08 andrei0807

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

moalsad avatar Aug 24 '24 20:08 moalsad