Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Connection Refused Error #98

Open
Open
@ya1220

Description

@ya1220

Hi Todd! Thank you very much for this amazing tutorial - this is great.

I'm trying to get it up and running and getting this error:

l addresses.   WARNING: This is a development server. Do not use it in a production deployment. * Running on http://172.31.36.187:5000/ (Press CTRL+C to quit)failed to send traces to Datadog Agent at http://localhost:8126Traceback (most recent call last):  File "/home/myusername/.local/lib/python3.9/site-packages/tenacity/__init__.py", line 407, in __call__    result = fn(*args, **kwargs)  File "/home/myusername/.local/lib/python3.9/site-packages/ddtrace/internal/writer.py", line 356, in _send_payload    response = self._put(payload, headers)  File "/home/myusername/.local/lib/python3.9/site-packages/ddtrace/internal/writer.py", line 332, in _put    conn.request("PUT", self._endpoint, data, headers)  File "/usr/lib/python3.9/http/client.py", line 1279, in request    self._send_request(method, url, body, headers, encode_chunked)  File "/usr/lib/python3.9/http/client.py", line 1325, in _send_request    self.endheaders(body, encode_chunked=encode_chunked)  File "/usr/lib/python3.9/http/client.py", line 1274, in endheaders    self._send_output(message_body, encode_chunked=encode_chunked)  File "/usr/lib/python3.9/http/client.py", line 1034, in _send_output    self.send(msg)  File "/usr/lib/python3.9/http/client.py", line 974, in send    self.connect()  File "/usr/lib/python3.9/http/client.py", line 945, in connect    self.sock = self._create_connection(  File "/usr/lib/python3.9/socket.py", line 844, in create_connection    raise err  File "/usr/lib/python3.9/socket.py", line 832, in create_connection    sock.connect(sa)ConnectionRefusedError: [Errno 111] Connection refusedThe above exception was the direct cause of the following exception:Traceback (most recent call last):  File "/home/myusername/.local/lib/python3.9/site-packages/ddtrace/internal/writer.py", line 458, in flush_queue    self._retry_upload(self._send_payload, encoded, n_traces)  File "/home/myusername/.local/lib/python3.9/site-packages/tenacity/__init__.py", line 404, in __call__    do = self.iter(retry_state=retry_state)  File "/home/myusername/.local/lib/python3.9/site-packages/tenacity/__init__.py", line 361, in iter    raise retry_exc from fut.exception()tenacity.RetryError: RetryError[<Future at 0x7f021177dbb0 state=finished raised ConnectionRefusedError>]

UPDATE: removed import ddtrace and patch_all() - now it is working :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp