ImagingDataCommons / ThrottleProxy

(CORE REPO)
Apache License 2.0
2 stars 0 forks source link

500 internal server error accessing large series #31

Open pieper opened 3 years ago

pieper commented 3 years ago

Accessing a series using wado-rs series retrieve leads to server error if the series has more than a few items in it.

This URL leads to the crash for instance:

https://proxy-dot-idc-dev.appspot.com/v1beta1/projects/idc-dev-etl/locations/us-central1/datasets/idc_tcia_mvp_wave0/dicomStores/idc_tcia/dicomWeb/studies/1.3.6.1.4.1.14519.5.2.1.2744.7002.150059977302243314164020079415/series/1.3.6.1.4.1.14519.5.2.1.2744.7002.248974378224961074547541151175

It should return a 95MB multipart message of content-type application/dicom. The correct result is provided by accessing the Google dicom store directly.

Probably the proxy is running out of memory or something similar.

pieper commented 3 years ago

Note this is not an issue for OHIF use of the proxy, but does prevent some other uses of the endpoint.

wlongabaugh commented 3 years ago

Logs from this time period. Note the 500s are either well after the memory spike, or unrelated. Logs did not capture any errors from what I can see.

Proxy500s ProxyMem
pieper commented 3 years ago

Here's a curl command to reproduce the issue:

curl --verbose https://proxy.imaging.datacommons.cancer.gov/v1/projects/canceridc-data/locations/us/datasets/idc/dicomStores/v2/dicomWeb/studies/1.2.826.0.1.3680043.8.498.29634459996408214234588479670784657165/series/1.2.826.0.1.3680043.8.498.39826337616810443783818414516357453289