Closed BenjaminIrwin closed 1 year ago
Under the hood Rollbar supplies a class that extends APIRoute
and replaces the default app.router.route_class
with the Rollbar route class. If you are modifying the app.router.route_class
instance later in your init()
method, you would see this sort of problem.
Closing due to inactivity.
Python: 3.7.10 Rollbar: 0.16.3
I am trying to add rollbar to a complex open source FastAPI-based application (https://github.com/AUTOMATIC1111/stable-diffusion-webui). I want to get request body content, so I am trying to integrate via the FastAPI Router.
My rollbar init code:
My setup code (added to line 140 of modules/api/api.py):
The API runs and works with no problems, but when I trigger an error, Rollbar doesn't log anything. This is the stack trace from an error:
Any ideas how I can fix this?