Skip to content

Unable to serialize unknown type RateLimitError #159

@shackmann

Description

@shackmann
6 ^[[36m(<lambda> pid=4087792, ip=172.16.4.97)^[[0m   File "/tmp/ray/session_2025-06-05_07-19-04_642991_1676/runtime_resources/pip/8e0c818e370543fcfadb98fef9ead1c894571822/virtualenv/lib/python3.12/site-packages/openinference/instrumentation/llama_index/_handler.py", li       ne 253, in process_output
   577 ^[[36m(<lambda> pid=4087792, ip=172.16.4.97)^[[0m     self[OUTPUT_VALUE] = result.model_dump_json(exclude_unset=True)
   578 ^[[36m(<lambda> pid=4087792, ip=172.16.4.97)^[[0m                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   579 ^[[36m(<lambda> pid=4087792, ip=172.16.4.97)^[[0m   File "/tmp/ray/session_2025-06-05_07-19-04_642991_1676/runtime_resources/pip/8e0c818e370543fcfadb98fef9ead1c894571822/virtualenv/lib/python3.12/site-packages/pydantic/main.py", line 519, in model_dump_json
   580 ^[[36m(<lambda> pid=4087792, ip=172.16.4.97)^[[0m     return self.__pydantic_serializer__.to_json(
   581 ^[[36m(<lambda> pid=4087792, ip=172.16.4.97)^[[0m            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   582 ^[[36m(<lambda> pid=4087792, ip=172.16.4.97)^[[0m pydantic_core._pydantic_core.PydanticSerializationError: Unable to serialize unknown type: <class 'openai.RateLimitError'>

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions