You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
RuntimeError: Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/ddtrace/profiling/scheduler.py", line 77, in flush
exp.export(events, start, self._last_export)
File "/usr/local/lib/python3.11/site-packages/ddtrace/profiling/exporter/http.py", line 263, in export
self._upload(client, self.endpoint_path, body, headers)
File "/usr/local/lib/python3.11/site-packages/ddtrace/internal/utils/retry.py", line 49, in retry_wrapped
raise exception
File "/usr/local/lib/python3.11/site-packages/ddtrace/internal/utils/retry.py", line 40, in retry_wrapped
result = f(*args, **kwargs)
^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/ddtrace/profiling/exporter/http.py", line 281, in _upload
raise RuntimeError("Server returned %d" % response.status)
RuntimeError: Server returned 502
I ended up solving this for myself. For me, the problem was that I was not setting my DD_SITE correctly. Make sure it's pointed to your profile's site (e.g. us1.datadoghq.com, us3.datadoghq.com, us5.datadoghq.com etc) and also that you're not including any extra quotation marks around the URL.
Hello)
RuntimeError: Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/ddtrace/profiling/scheduler.py", line 77, in flush
exp.export(events, start, self._last_export)
File "/usr/local/lib/python3.11/site-packages/ddtrace/profiling/exporter/http.py", line 263, in export
self._upload(client, self.endpoint_path, body, headers)
File "/usr/local/lib/python3.11/site-packages/ddtrace/internal/utils/retry.py", line 49, in retry_wrapped
raise exception
File "/usr/local/lib/python3.11/site-packages/ddtrace/internal/utils/retry.py", line 40, in retry_wrapped
result = f(*args, **kwargs)
^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/ddtrace/profiling/exporter/http.py", line 281, in _upload
raise RuntimeError("Server returned %d" % response.status)
RuntimeError: Server returned 502
ENV:
amqp==5.2.0
annotated-types==0.7.0
anyio==4.6.0
argon2-cffi==23.1.0
argon2-cffi-bindings==21.2.0
arrow==1.3.0
asgiref==3.8.1
asttokens==2.4.1
async-lru==2.0.4
attrs==24.2.0
babel==2.16.0
beautifulsoup4==4.12.3
billiard==4.2.1
black==24.10.0
bleach==6.1.0
boto3==1.35.44
botocore==1.35.44
Brotli==1.1.0
bytecode==0.15.1
cachetools==5.5.0
celery==5.4.0
certifi==2024.8.30
cffi==1.17.1
cfgv==3.4.0
charset-normalizer==3.3.2
click==8.1.7
click-didyoumean==0.3.1
click-plugins==1.1.1
click-repl==0.3.0
comm==0.2.2
coverage==7.6.1
cron-descriptor==1.4.5
croniter==3.0.3
cryptography==43.0.1
cssselect2==0.7.0
daiquiri==3.2.5.1
datadog==0.50.0
ddtrace==2.12.2
debugpy==1.8.5
decorator==5.1.1
defusedxml==0.7.1
dependency-injector==4.42.0
Deprecated==1.2.14
dirty-equals==0.8.0
distlib==0.3.8
Django==5.1.2
django-bootstrap3==24.3
django-cache-memoize==0.2.0
django-celery-beat==2.7.0
django-cleanup==9.0.0
django-crum==0.7.9
django-dirtyfields==1.9.3
django-environ==0.11.2
django-filter==24.3
django-model-utils==5.0.0
django-ninja==1.3.0
django-redis==5.4.0
django-storages==1.14.4
django-stubs==5.1.0
django-stubs-ext==5.1.0
django-timezone-field==7.0
djangorestframework==3.15.2
djangorestframework-simplejwt==5.3.1
drf-extensions==0.7.1
drf-spectacular==0.27.2
envier==0.5.2
et-xmlfile==1.1.0
executing==2.1.0
factory_boy==3.3.1
Faker==29.0.0
fastapi==0.115.0
fastjsonschema==2.20.0
fdjangodog==0.5.2
filelock==3.16.1
flake8==7.1.1
fonttools==4.54.0
fqdn==1.5.1
google-api-python-client==1.7.12
google-auth==2.35.0
google-auth-httplib2==0.2.0
greenlet==3.1.1
h11==0.14.0
h2==4.1.0
hpack==4.0.0
html5lib==1.1
httpcore==1.0.5
httplib2==0.22.0
httpx==0.27.2
hyperframe==6.0.1
identify==2.6.1
idna==3.10
importlib_metadata==8.4.0
inflection==0.5.1
iniconfig==2.0.0
ipykernel==6.29.5
ipython==8.27.0
isoduration==20.11.0
isort==5.13.2
jedi==0.19.1
Jinja2==3.1.4
jmespath==1.0.1
json5==0.9.25
jsonpointer==3.0.0
jsonschema==4.23.0
jsonschema-specifications==2023.12.1
jupyter-events==0.10.0
jupyter-lsp==2.2.5
jupyter_client==8.6.2
jupyter_core==5.7.2
jupyter_server==2.14.2
jupyter_server_terminals==0.5.3
jupyterlab==4.2.5
jupyterlab_pygments==0.3.0
jupyterlab_server==2.27.3
kafka-python==2.0.2
kombu==5.4.2
MarkupSafe==2.1.5
matplotlib-inline==0.1.7
mccabe==0.7.0
mint-utils==2.22.2
mistune==3.0.2
myn-ad-server-utils==1.3.3
myn-events-producer==1.2.0
myn-periodic-tasks-utils==2.1.1
myn-utils @ git+https://github.com/mint-ai/myn_utils.git@9dd218f7649e9f02f5efc00a564d8af9f82d0650
mypy==1.12.1
mypy-extensions==1.0.0
nbclient==0.10.0
nbconvert==7.16.4
nbformat==5.10.4
nest-asyncio==1.6.0
nodeenv==1.9.1
notebook==7.2.2
notebook_shim==0.2.4
oauth2client==4.1.3
openpyxl==3.1.5
opentelemetry-api==1.27.0
orjson==3.10.7
overrides==7.7.0
packaging==24.1
pandocfilters==1.5.1
parso==0.8.4
pathspec==0.12.1
pexpect==4.9.0
pillow==10.4.0
platformdirs==4.3.6
pluggy==1.5.0
polyfactory==2.17.0
pre_commit==4.0.1
prometheus_client==0.20.0
prompt_toolkit==3.0.47
protobuf==5.28.2
psutil==6.0.0
psycopg==3.2.3
ptyprocess==0.7.0
pure_eval==0.2.3
pyasn1==0.6.1
pyasn1_modules==0.4.1
pycodestyle==2.12.1
pycparser==2.22
pydantic==2.9.2
pydantic-settings==2.6.0
pydantic_core==2.23.4
pydruid==0.6.9
pydyf==0.11.0
pyflakes==3.2.0
Pygments==2.18.0
PyJWT==2.9.0
pyparsing==3.1.4
pyperf==2.7.0
pyphen==0.16.0
pytest==8.3.3
pytest-cov==5.0.0
pytest-django==4.9.0
pytest-unordered==0.6.1
python-crontab==3.2.0
python-dateutil==2.9.0.post0
python-dotenv==1.0.1
python-json-logger==2.0.7
python-magic==0.4.27
pytz==2024.2
PyYAML==6.0.2
pyzmq==26.2.0
redis==5.1.1
referencing==0.35.1
requests==2.32.3
responses==0.25.3
rfc3339-validator==0.1.4
rfc3986-validator==0.1.1
rpds-py==0.20.0
rsa==4.9
s3transfer==0.10.2
Send2Trash==1.8.3
six==1.16.0
snakecase==1.0.1
sniffio==1.3.1
sonyflake-py==1.3.0
soupsieve==2.6
SQLAlchemy==2.0.35
sqlparse==0.5.1
stack-data==0.6.3
starlette==0.38.6
terminado==0.18.1
testfixtures==8.3.0
tinycss2==1.3.0
tornado==6.4.1
traitlets==5.14.3
types-cachetools==5.5.0.20240820
types-cffi==1.16.0.20240331
types-pyOpenSSL==24.1.0.20240722
types-python-dateutil==2.9.0.20240906
types-PyYAML==6.0.12.20240917
types-redis==4.6.0.20240903
types-setuptools==75.1.0.20240917
types-six==1.16.21.20240513
typing_extensions==4.12.2
tzdata==2024.2
uri-template==1.3.0
uritemplate==3.0.1
urllib3==1.26.20
vine==5.1.0
virtualenv==20.26.5
wcwidth==0.2.13
weasyprint==62.3
webcolors==24.8.0
webencodings==0.5.1
websocket-client==1.8.0
wrapt==1.16.0
xmltodict==0.13.0
zipp==3.20.2
zopfli==0.2.3
The text was updated successfully, but these errors were encountered: