sentry-python icon indicating copy to clipboard operation
sentry-python copied to clipboard

python traceback locals cut off after a variable fails repr

Open agroszer opened this issue 3 years ago • 3 comments

Environment

self-hosted (https://develop.sentry.dev/self-hosted/)

Version

9.1.2

Steps to Reproduce

python-pseudo code:

def test():
    a = 1
    b = ObjectThatRaisesOnRepr()
    c = 3
    1 / 0  # raise, cause a sentry

Expected Result

locals list of:

a           1
c           3

or even better, ideally

a           1
b           <variable failed repr>
c           3

Actual Result

locals list of:

a           1

agroszer avatar Mar 08 '22 15:03 agroszer

Routing to @getsentry/team-web-backend for triage. ⏲️

getsentry-release avatar Mar 08 '22 19:03 getsentry-release

thx for reporting @agroszer, we'll take a look eventually but PRs always welcome!

sl0thentr0py avatar Mar 09 '22 13:03 sl0thentr0py

This issue has gone three weeks without activity. In another week, I will close it.

But! If you comment or otherwise update it, I will reset the clock, and if you label it Status: Backlog or Status: In Progress, I will leave it alone ... forever!


"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀

github-actions[bot] avatar Mar 31 '22 00:03 github-actions[bot]

@agroszer I attempted to reproduce this bug in the current latest version of the Python SDK, and it appears to be working as expected, with "<broken repr>" being output for the variable whose __repr__ function fails. So, I am closing this issue.

If you continue to experience the problem when using the latest Python SDK, please reopen the issue and provide a code snippet I can run to observe the same result that you are. Any additional information about your configuration that you are able to share would help me to reproduce the bug.

szokeasaurusrex avatar Nov 17 '23 00:11 szokeasaurusrex