Issue with studies/{study_id}/statistics api after enabling the authantication

Hi,
I enabled the Orthanc plugin and was able to authenticate Orthanc API’s except this API.
http://localhost:8042/studies/c19fe95d-b4f70025-ecc1f9cb-0d94d411-aaff3f39/statistics.
I pass the token on the header It is a valid access token but still gives 403 error.
its supposed to give response like

{
    "CountInstances": 1,
    "CountSeries": 1,
    "DicomDiskSize": "528674",
    "DicomDiskSizeMB": 0,
    "DicomUncompressedSize": "52874",
    "DicomUncompressedSizeMB": 0,
    "DiskSize": "531000",
    "DiskSizeMB": 0,
    "UncompressedSize": "531000",
    "UncompressedSizeMB": 0
}

in the docker auth service error showing like this

It’s saying failed to decode token.
I am using the token with admin-role.
only this API is failing

Does anyone know why this happening?

Prathyu

1 Like

Then, you should double check that the token is valid !!! You can test it in jwt.io to validate it by yourself.