-
Notifications
You must be signed in to change notification settings - Fork 296
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
Front End makes failed request to http://localhost:8000/v1/collections/list #423
Comments
Update: I found the LOCAL flag in compose.env and set to false. No change. Also tried hard-coding VITE_QA_FOUNDRY_URL in the frontend/Dockerfile.dev file, no change. |
Hello @mtutty |
Hi @mnvsk97 Thanks for getting back. Answers:
VPS is 8 CPU, 16GB RAM, 320GB SSD. Let me know if you need more details there.
I used
Note: The hostname gforge-ragflow is in my local /etc/hosts file. The browser resolves it no problem. |
Got it. Please check if the backend server is reachable from the front-end container. SSH into front end container: |
@mnvsk97 I'm not sure how this helps the troubleshooting, though? The failures are from my browser, not between the containers. Let me know next steps to try. |
Looks like the front end is hitting localhost:8000 instead of the backend container. potential fix:
This should fix the communication issue. If this doesn't help, please join our slack channel and we can hop on a quickcall. |
Hi @mnvsk97 Thanks for the update. I tried what you suggested and I get the first front-end page with a spinner that never finishes loading. I don't think that VITE_QA_FOUNDRY_URL is being used properly by the cognita-frontend container. By way of comparison, if I open a new tab and make the same request that never returns in the UI (but with my hostname), it works fine.
I will check out the Slack channel! |
Okay, following up from our video troubleshooting session. I've got it working no problem, so I can move ahead with adding documents and the rest of the POC process. The key learning here is that the env vars ARE ADDED DURING BUILD TIME, and not at runtime as is more often the case. So if you change the value of VITE_QA_FOUNDRY_URL (i.e., your domain name) then you'll need to rebuild the image for the front end before it takes effect. @mnvsk97 knew this, but I had to learn it the hard way :) |
I've got Cognita running on a VPS server using docker compose. The web application comes up on port 5001 and works in my browser at, e.g., http://cognita-test:5001. I have set VITE_QA_FOUNDRY_URL and OPENAI_API_KEY in compose.env, but not changed any other settings.
However, I'm seeing three failed requests in my Network tab when loading the web app:
http://localhost:8000/v1/collections/list
http://localhost:8000/v1/internal/models?model_type=chat
http://localhost:8000/openapi.json
I can click the "Collections" tab and try to add a collection, but as you might expect, the Model and Data Source fields are empty and unusable.
Browsing to "Data Sources" tab, I also see these failures:
http://localhost:8000/v1/components/dataloaders
http://localhost:8000/v1/data_source/list
Please let me know if I'm missing something - perhaps I skipped chunk of the tutorial?
The text was updated successfully, but these errors were encountered: