online-ml / beaver

🦫 MLOps for (online) machine learning
BSD 3-Clause "New" or "Revised" License
80 stars 13 forks source link

Encountering errors with frontend #20

Open DABH opened 7 months ago

DABH commented 7 months ago

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

git clone git@github.com: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 commented 1 month ago

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