[500 error - cache] Exception in ASGI application
STEPS:
Arturo would need to restart the services to get the initialization I got this error when made POST WaterAnalysisTest /data request but it only happens when a core service (storage, search, etc), it is not used for period of time
This is happening because of cache Time to time happens, when a core service (storage, search, etc), it is not used for period of time, it will get initialized again, meaning, get the properties of the service, such as partition, entitlements and some keyvault properties, this will cause that service takes longer to respond at first request (~8s tops) But RAFS has pre-configured timeout for requests, what I would do to fix this would be to increase the request timeout in rafs code AR:
2023-05-31 13:02:47.791 | INFO | logging:handle:978 - 127.0.0.6:35551 - "POST /wateranalysisreports/opendes%3Awork-product-compo nent--WaterAnalysisTest%3A0f3f0c9d74304c2e988867aa630262a6/data HTTP/1.1" 500 ERROR: Exception in ASGI application Traceback (most recent call last): File "/usr/local/lib/python3.11/site-packages/httpcore/backends/asyncio.py", line 34, in read return await self._stream.receive(max_bytes=max_bytes) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/anyio/_backends/_asyncio.py", line 1265, in receive await self._protocol.read_event.wait() File "/usr/lib/python3.11/asyncio/locks.py", line 213, in wait await fut asyncio.exceptions.CancelledError
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/usr/local/lib/python3.11/site-packages/httpcore/_exceptions.py", line 10, in map_exceptions yield File "/usr/local/lib/python3.11/site-packages/httpcore/backends/asyncio.py", line 32, in read with anyio.fail_after(timeout): File "/usr/local/lib/python3.11/site-packages/anyio/_core/_tasks.py", line 118, in exit raise TimeoutError TimeoutError