Sanic- Sentry integration: Sending 2 requests consecutively to an endpoint in a test function raised error #1460
Labels
Help wanted
Extra attention is needed
Integration: Sanic
Team: Web Backend
Type: Bug
Something isn't working
Environment
SaaS (https://sentry.io/)
Version
No response
Steps to Reproduce
Hi guys. Recently I upgraded Sanic and Sentry SDK's version of my web app. Yet there is a problem.
Here I have a very rough Sanic web app and I also use Sentry for error tracking to demonstrate the problem:
I got IndexError: pop from empty list When trying to write a test where I fired a GET request to an endpoint and verify the HTTP response code then I did the same in the same test function.](https://github.com/namnguyenbk/sanic-sentry-bug/blob/main/test.py#L10). See full traceback below.
Expected Result
The test could run successfully with Sanic=20.12.1. Still, the latest version of Sanic and Sentry makes it fail. Not sure what's going on and whether it affects other parts of the application. 🙏 Anyone has ideas to work around or thoughts?
Actual Result
The text was updated successfully, but these errors were encountered: