Skip to content

ClientTimeoutError in the API service #140

Description

@sentry

Sentry Issue: CELLARIUM-CLOUD-11

TimeoutError: 
  File "casp/services/api/clients/model_client.py", line 58, in _aiohttp_async_post
    async with session.post(url, data=form_data, headers=headers) as response:

ClientTimeoutError: Client Timeout Error: 
(13 additional frame(s) were not displayed)
...
  File "casp/services/api/services/cell_operations_service.py", line 254, in annotate_adata_file
    query_ids, embeddings = await self.get_embeddings(file_to_embed=file, model_name=model_name)
  File "casp/services/api/services/cell_operations_service.py", line 64, in get_embeddings
    embeddings_response_json = await clients.ModelInferenceClient.call_model_embed(
  File "casp/services/api/clients/model_client.py", line 130, in call_model_embed
    return await cls.post(url=url_endpoint, data=request_data, files=request_files)
  File "casp/services/api/clients/model_client.py", line 101, in post
    return await cls._aiohttp_async_post(url=url, form_data=form_data)
  File "casp/services/api/clients/model_client.py", line 77, in _aiohttp_async_post
    raise exceptions.ClientTimeoutError(f"Client Timeout Error: {e}")

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions