Skip to content

ConnectionError: HTTPConnectionPool(host='base', port=8000): Max retries exceeded with url: /streamer-sales/plugins_info (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f15b02bd4b0>: Failed to establish a new connection: [Errno 111] Connection refused')) #22

@fishfree

Description

@fishfree

执行docker-compose up -f compose.yaml -d, 然后打开 http://****:7860 报错:

ConnectionError: HTTPConnectionPool(host='base', port=8000): Max retries exceeded with url: /streamer-sales/plugins_info (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f15b02bd4b0>: Failed to establish a new connection: [Errno 111] Connection refused'))
Traceback:
File "/opt/conda/lib/python3.10/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 600, in _run_script
    exec(code, module.__dict__)
File "/workspace/Streamer-Sales/app.py", line 463, in <module>
    main()
File "/workspace/Streamer-Sales/app.py", line 288, in main
    init_tts()
File "/workspace/Streamer-Sales/app.py", line 235, in init_tts
    st.session_state.gen_tts_checkbox = get_server_plugins_info_api()["tts"]
File "/workspace/Streamer-Sales/utils/api.py", line 161, in get_server_plugins_info_api
    res = requests.get(API_CONFIG.PLUGINS_INFO_URL).json()
File "/opt/conda/lib/python3.10/site-packages/requests/api.py", line 73, in get
    return request("get", url, params=params, **kwargs)
File "/opt/conda/lib/python3.10/site-packages/requests/api.py", line 59, in request
    return session.request(method=method, url=url, **kwargs)
File "/opt/conda/lib/python3.10/site-packages/requests/sessions.py", line 589, in request
    resp = self.send(prep, **send_kwargs)
File "/opt/conda/lib/python3.10/site-packages/requests/sessions.py", line 703, in send
    r = adapter.send(request, **kwargs)
File "/opt/conda/lib/python3.10/site-packages/requests/adapters.py", line 700, in send
    raise ConnectionError(e, request=request)

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