Open phooijenga opened 3 months ago
Hey @phooijenga, thanks for reporting, this shouldn't happen. Please use keyword args until we fix this.
Hey @phooijenga,
can you tell me what version of FastAPI and Starlette your are using and
can you show me what RequestLoggerMiddleware
looks like?
This would help a lot!
It still happens with the latest versions available. I've put together a Gist with a self-contained reproduction.
Amazing @phooijenga !
I will have a look!
How do you use Sentry?
Sentry Saas (sentry.io)
Version
2.7.1
Steps to Reproduce
I have a FastAPI app with some middleware, one of which I want to pass a positional argument, like this:
This works fine when Sentry is not enabled, but causes a TypeError when it is. The problem does not occur when I use a keyword argument instead.
Expected Result
I expect the app to work the same way with and without Sentry enabled.
Actual Result