Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: PydanticSerializationError from the prometheus instrumentor #674

Open
1 task done
whiterabbit1983 opened this issue Oct 16, 2024 · 1 comment
Open
1 task done
Assignees

Comments

@whiterabbit1983
Copy link
Contributor

📜 Description

Here's the stack trace:

agents-api-multi-tenant-1 | File "/usr/local/lib/python3.12/site-packages/prometheus_fastapi_instrumentator/middleware.py", line 174, in __call__ agents-api-multi-tenant-1 | raise exc agents-api-multi-tenant-1 | File "/usr/local/lib/python3.12/site-packages/prometheus_fastapi_instrumentator/middleware.py", line 172, in __call__ agents-api-multi-tenant-1 | await self.app(scope, receive, send_wrapper) agents-api-multi-tenant-1 | File "/usr/local/lib/python3.12/site-packages/starlette/middleware/exceptions.py", line 62, in __call__ agents-api-multi-tenant-1 | File "/usr/local/lib/python3.12/site-packages/pydantic/type_adapter.py", line 135, in wrapped agents-api-multi-tenant-1 | return func(self, *args, **kwargs) agents-api-multi-tenant-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ agents-api-multi-tenant-1 | File "/usr/local/lib/python3.12/site-packages/pydantic/type_adapter.py", line 451, in dump_python agents-api-multi-tenant-1 | return self.serializer.to_python( agents-api-multi-tenant-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ agents-api-multi-tenant-1 | pydantic_core._pydantic_core.PydanticSerializationError: Unable to serialize unknown type: <class 'google._upb._message.ScalarMapContainer'>

👟 Reproduction steps

No response

👀 Have you spent some time to check if this bug has been raised before?

  • I checked and didn't find similar issue
@whiterabbit1983 whiterabbit1983 added the bug Something isn't working label Oct 16, 2024
@creatorrr creatorrr removed the bug Something isn't working label Jan 20, 2025
@creatorrr
Copy link
Contributor

is this resolved @whiterabbit1983 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants