Closed namnguyenbk closed 1 year ago
Routing to @getsentry/team-web-sdk-backend for triage. ⏲️
@namnguyenbk https://github.com/sanic-org/sanic/pull/2451 may have resolved this; can you try to reproduce with sanic 22.6.0?
Is this still a thing?
@ahopkins Yes, I am still facing this issue. sanic==22.6.2 sanic-testing==22.6.0 sanic-routing==22.3.0 pytest==7.2.0 pytest-asyncio==0.20.2 pytest-json==0.4.0 asynctest==0.13.0 jsonschema==3.0.2
Hey @namnguyenbk, I tried to reproduce this issue with the code you provided, but the test passed with the latest Sentry SDK and Sanic packages. My full pip freeze
output for the environment I ran the tests in is provided below:
aiofiles==23.2.1
anyio==4.0.0
certifi==2023.7.22
h11==0.14.0
html5tagger==1.3.0
httpcore==0.18.0
httptools==0.6.1
httpx==0.25.0
idna==3.4
iniconfig==2.0.0
multidict==6.0.4
packaging==23.2
pluggy==1.3.0
pytest==7.4.3
sanic==23.6.0
sanic-routing==23.6.0
sanic-testing==23.6.0
sentry-sdk==1.33.0
sniffio==1.3.0
tracerite==1.1.0
typing_extensions==4.8.0
ujson==5.8.0
urllib3==2.0.7
uvloop==0.19.0
websockets==12.0
I will assume that this bug has been fixed, so I will close the issue. If you or @ankitcshah14 continue to experience this bug, please reopen the issue and provide us with the specific steps to reproduce the bug.
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