Skip to content

[🐛 Bug]: Weird Tenant not found during process_event #4449

@VladimirFilonov

Description

@VladimirFilonov
Traceback (most recent call last):
  File "/venv/lib/python3.11/site-packages/keep/api/tasks/process_event_task.py", line 655, in process_event
    enrichments_bl = EnrichmentsBl(tenant_id, session)
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/venv/lib/python3.11/site-packages/keep/api/bl/enrichments_bl.py", line 99, in __init__
    self.elastic_client = ElasticClient(tenant_id=tenant_id)
                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/venv/lib/python3.11/site-packages/keep/api/core/elastic.py", line 40, in __init__
    if not self.tenant_configuration.get_configuration(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/venv/lib/python3.11/site-packages/keep/api/core/tenant_configuration.py", line 57, in get_configuration
    raise HTTPException(
fastapi.exceptions.HTTPException: 401: Tenant not found [id: 36bcfbd1-c4c4-4f8d-bc0e-4ccf59d2e495]"

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