Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

faraday agent:socketio.exceptions.ConnectionError: Unexpected status code 503 in server response #22

Open
sqws651515 opened this issue Nov 29, 2024 · 0 comments

Comments

@sqws651515
Copy link

faraday % docker run -v /Users/faraday/dispatcher.yaml:/root/.faraday/config/dispatcher.yaml faradaysec/faraday_agent_dispatcher --token=580987
WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
2024-11-29 03:17:08,715 - faraday_agent_dispatcher - INFO {MainThread} [dispatcher_io.py:173 - register()] token_registration_url: http://172.16.10.85:5985/_api/v3/agents
2024-11-29 03:17:08,887 - faraday_agent_dispatcher - INFO {MainThread} [dispatcher_io.py:213 - register()] Registered successfully
2024-11-29 03:17:08,888 - faraday_agent_dispatcher - INFO {MainThread} [main.py:81 - main()] Trying to connect to: http://172.16.10.85:0
Traceback (most recent call last):
File "/usr/local/bin/faraday-dispatcher", line 8, in
sys.exit(cli())
^^^^^
File "/usr/local/lib/python3.11/dist-packages/click/core.py", line 1157, in call
return self.main(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/dist-packages/click/core.py", line 1078, in main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/dist-packages/click/core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/dist-packages/click/core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/dist-packages/click/core.py", line 783, in invoke
return __callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/dist-packages/faraday_agent_dispatcher/cli/main.py", line 107, in run
exit_code = asyncio.run(main(config_file, logger, token))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/asyncio/runners.py", line 190, in run
return runner.run(main)
^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/asyncio/runners.py", line 118, in run
return self._loop.run_until_complete(task)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/asyncio/base_events.py", line 654, in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/dist-packages/faraday_agent_dispatcher/cli/main.py", line 83, in main
await dispatcher.sio.connect(uri)
File "/usr/local/lib/python3.11/dist-packages/socketio/asyncio_client.py", line 149, in connect
raise exceptions.ConnectionError(exc.args[0]) from None
socketio.exceptions.ConnectionError: Unexpected status code 503 in server response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant