geobeyond / Arpav-PPCV-backend

Backend di Piattaforma Proiezioni Climatiche per il Nord-Est.
Creative Commons Attribution 4.0 International
0 stars 1 forks source link

coverage time series generation fails when including variable data #169

Closed ricardogsilva closed 1 month ago

ricardogsilva commented 1 month ago

variable needs to be hashable

last part of the logs:

File "/home/appuser/.cache/pypoetry/virtualenvs/arpav-ppcv-backend-f8CPI8sp-py3.10/lib/python3.10/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app                                                                                                    
    await app(scope, receive, sender)                                                                                                                                                                                                                                          
  File "/home/appuser/.cache/pypoetry/virtualenvs/arpav-ppcv-backend-f8CPI8sp-py3.10/lib/python3.10/site-packages/starlette/routing.py", line 72, in app                                                                                                                       
    response = await func(request)                                                                                                                                                                                                                                             
  File "/home/appuser/.cache/pypoetry/virtualenvs/arpav-ppcv-backend-f8CPI8sp-py3.10/lib/python3.10/site-packages/fastapi/routing.py", line 278, in app                                                                                                                        
    raw_response = await run_endpoint_function(                                                                                                                                                                                                                                
  File "/home/appuser/.cache/pypoetry/virtualenvs/arpav-ppcv-backend-f8CPI8sp-py3.10/lib/python3.10/site-packages/fastapi/routing.py", line 193, in run_endpoint_function                                                                                                      
    return await run_in_threadpool(dependant.call, **values)                                                                                                                                                                                                                   
  File "/home/appuser/.cache/pypoetry/virtualenvs/arpav-ppcv-backend-f8CPI8sp-py3.10/lib/python3.10/site-packages/starlette/concurrency.py", line 42, in run_in_threadpool                                                                                                     
    return await anyio.to_thread.run_sync(func, *args)                                                                                                                                                                                                                         
  File "/home/appuser/.cache/pypoetry/virtualenvs/arpav-ppcv-backend-f8CPI8sp-py3.10/lib/python3.10/site-packages/anyio/to_thread.py", line 56, in run_sync                                                                                                                    
    return await get_async_backend().run_sync_in_worker_thread(                                                                                                                                                                                                                
  File "/home/appuser/.cache/pypoetry/virtualenvs/arpav-ppcv-backend-f8CPI8sp-py3.10/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 2177, in run_sync_in_worker_thread                                                                                        
    return await future                                                                                                                                                                                                                                                        
  File "/home/appuser/.cache/pypoetry/virtualenvs/arpav-ppcv-backend-f8CPI8sp-py3.10/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 859, in run                                                                                                               
    result = context.run(func, *args)                                                                                                                                                                                                                                          
  File "/home/appuser/app/arpav_ppcv/webapp/api_v2/routers/coverages.py", line 461, in get_time_series                                                                                                                                                                         
    ) = operations.get_coverage_time_series(                                                                                                                                                                                                                                   
  File "/home/appuser/app/arpav_ppcv/operations.py", line 660, in get_coverage_time_series                                                                                                                                                                                     
    observation_result[                                                                                                                                                                                                                                                        
TypeError: unhashable type: 'Variable'