Skip to content

Commit 9750d94

Browse files
authored
fix(symbolicator): use requests implementation instead of abstract class (#92092)
Fixes this issue: ``` >>> from sentry.lang.native.sources import get_gcp_token >>> t = get_gcp_token(client_email) Traceback (most recent call last): File "<console>", line 1, in <module> File "/.venv/lib/python3.13/site-packages/cachetools/__init__.py", line 702, in wrapper v = func(*args, **kwargs) File "/usr/src/sentry/src/sentry/lang/native/sources.py", line 630, in get_gcp_token target_credentials.refresh(Request()) ~~~~~~~^^ TypeError: Can't instantiate abstract class Request without an implementation for abstract method '__call__' ``` We need to use `requests` implementation instead of abstract class
1 parent 39d9961 commit 9750d94

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sentry/lang/native/sources.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
from django.conf import settings
1616
from django.urls import reverse
1717
from google.auth import impersonated_credentials
18-
from google.auth.transport import Request
18+
from google.auth.transport.requests import Request
1919
from rediscluster import RedisCluster
2020

2121
from sentry import features, options

0 commit comments

Comments
 (0)