cedadev / archive-opensearch

Prototype Opensearch Application for the CEDA Archive
0 stars 0 forks source link

500 errors on granules #140

Open rsmith013 opened 2 years ago

rsmith013 commented 2 years ago

http://127.0.0.1:8000/opensearch/request?parentIdentifier=f1ab07b5292f4813bd3090b51d270aa8&startPage=1&maximumRecords=20&httpAccept=application%2Fgeo%2Bjson&drsId=esacci.CLOUD.mon.L3C.CLD_PRODUCTS.MODIS.Terra.MODIS_TERRA.2-0.r1

AttributeError at /opensearch/request
'list' object has no attribute 'get'

Request Method: | GET
-- | --
http://127.0.0.1:8000/opensearch/request?parentIdentifier=f1ab07b5292f4813bd3090b51d270aa8&startPage=1&maximumRecords=20&httpAccept=application%2Fgeo%2Bjson&drsId=esacci.CLOUD.mon.L3C.CLD_PRODUCTS.MODIS.Terra.MODIS_TERRA.2-0.r1
2.2.24
AttributeError
'list' object has no attribute 'get'
/Users/vdn73631/Documents/dev/CCI_KE_PROJECT/opensearch2/ceda_opensearch/django_opensearch/opensearch/backends/elasticsearch/facets/cci.py in <listcomp>, line 160
rsmith013 commented 2 years ago

This is an issue with the data structure. Should figure out what the issue is here rather than try to accommodate it. https://docs.google.com/document/d/1rHwXLKmCHvhCZdGa2WvKty5FhvltnEly3xf4McwjuWs/edit?usp=drive_web&ouid=101480036514641043323