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

Encountering errors with frontend #20

Open
DABH opened this issue Mar 25, 2024 · 1 comment
Open

Encountering errors with frontend #20

DABH opened this issue Mar 25, 2024 · 1 comment

Comments

@DABH
Copy link

DABH commented Mar 25, 2024

I got beaver up and running following the manual Docker compose steps per the readme,

git clone [email protected]:online-ml/beaver.git
cd beaver
docker-compose up

but when I browse to http://localhost:8501/Projects or http://localhost:8501/Infrastructure I get Connection Refused errors -- is this expected? Or any ideas on a fix/workaround? Here is an example of the error I'm seeing:

ConnectionError: HTTPConnectionPool(host='localhost', port=80): Max retries exceeded with url: /api/project/ (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xffff3ff3b580>: Failed to establish a new connection: [Errno 111] Connection refused'))
Traceback:
File "/usr/local/lib/python3.10/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 541, in _run_script
    exec(code, module.__dict__)
File "/code/ui/pages/1_🧪_Projects.py", line 5, in <module>
    projects = BEAVER_SDK.project.list()
File "/code/beaver_sdk/beaver_sdk/__init__.py", line 178, in list
    return self.get("/api/project/")
File "/code/beaver_sdk/beaver_sdk/__init__.py", line 29, in get
    return self.request("GET", endpoint, **kwargs)
File "/code/beaver_sdk/beaver_sdk/__init__.py", line 22, in request
    r = (session or self.session()).request(
File "/usr/local/lib/python3.10/site-packages/requests/sessions.py", line 589, in request
    resp = self.send(prep, **send_kwargs)
File "/usr/local/lib/python3.10/site-packages/requests/sessions.py", line 703, in send
    r = adapter.send(request, **kwargs)
File "/usr/local/lib/python3.10/site-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
@Yuhancui1
Copy link

have the same issue. Not sure how to fix it.

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

2 participants