OrthancError: Parameter out of range with WADO RS

Hi everyone,

When I try to access my orthanc DICOM-Web server via this WADO RS URL: http://localhost:8042/dicom-web/studies/1.2.826.0.1.3680043.8.654.10.2010/series/1.2.826.0.1.3680043.8.654.20.2010/instances/1.2.826.0.1.3680043.8.654.50.2010.0000000000194/rendered?viewport=63,50

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

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

  • Category Media Type Support

    Single Frame Image image/jpeg default
    image/gif required
    image/png required
    image/jp2 optional
    Multi-frame Image image/gif optional
    Video video/mpeg optional
    video/mp4 optional
    video/H265 optional
    Text text/html default
    text/plain required
    text/xml required
    text/rtf optional
    application/pdf optional

  • 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