Skip to content

AttributeError: 'MessageRequest' object has no attribute 'user_id' #59

@sergiotapia

Description

@sergiotapia

I'm trying to use MIRIX through the FastAPI endpoints you expose.

curl -X POST "http://localhost:47283/send_message" \
     -H "Content-Type: application/json" \
     -d '{"message": "Hello, can you introduce yourself?"}'
{"detail":"Error processing message: 'MessageRequest' object has no attribute 'user_id'"}

When hitting the /send_message endpoint, there's this error:

Error in send_message_endpoint: 'MessageRequest' object has no attribute 'user_id'
Traceback: Traceback (most recent call last):
  File "/home/sergio/Work/MIRIX/mirix/server/fastapi_server.py", line 550, in send_message_endpoint
    if request.user_id:
       ^^^^^^^^^^^^^^^
  File "/home/sergio/Work/MIRIX/mirix_env/lib/python3.13/site-packages/pydantic/main.py", line 991, in __getattr__
    raise AttributeError(f'{type(self).__name__!r} object has no attribute {item!r}')
AttributeError: 'MessageRequest' object has no attribute 'user_id'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions