OrthancError: Parameter out of range with WADO RS

377 views
Skip to first unread message

Jerome Branny

unread,
Apr 6, 2021, 10:50:14 AM4/6/21
to Orthanc Users
Hi everyone,


I get the following error:
   "HttpError" : "Bad Request",
   "HttpStatus" : 400,
   "Message" : "Parameter out of range",
   "Method" : "GET",
   "OrthancError" : "Parameter out of range",
   "OrthancStatus" : 3,

I am using the latest orthanc version inside a docker container. Interestingly enough, if i send the same request via. Postman it works.

Any help is appreciated
Thanks in advance

regards,
Jerome

Tomas Kenda

unread,
Apr 6, 2021, 12:39:27 PM4/6/21
to Jerome Branny, Orthanc Users
Hi,

Check the Request Accept headers. Postman use as default */* and it works fine:

image.png

 but Chrome use text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9.

image.png

If you copy Chrome's header and disable the default */*, you can reproduce it.

I think that is not an Orthanc's issue because the official DICOM headers are:

Accept Headers


  • CategoryMedia TypeSupport
    Single Frame Imageimage/jpegdefault
    image/gifrequired
    image/pngrequired
    image/jp2optional
    Multi-frame Imageimage/gifoptional
    Videovideo/mpegoptional
    video/mp4optional
    video/H265optional
    Texttext/htmldefault
    text/plainrequired
    text/xmlrequired
    text/rtfoptional
    application/pdfoptional


  • Following DICOM standards, is no need for */* support but Orthanc allows that.
  • Chrome's headers are not compatible with DICOM media types.
Solution: find a way to force Chrome to use a WADO valid header. 

Regards,

TK

--
You received this message because you are subscribed to the Google Groups "Orthanc Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to orthanc-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/orthanc-users/d57be3a9-fb40-415b-bd2a-6739b0642c9bn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages