cohere-ai / cohere-toolkit

Cohere Toolkit is a collection of prebuilt components enabling users to quickly build and deploy RAG applications.
MIT License
2.73k stars 335 forks source link

Frontend not communicating with backend. #473

Closed EnronMusk closed 3 weeks ago

EnronMusk commented 1 month ago

What is the issue?

cloned latest branch and ran make first-run, encountering this error in multiple browsers (google + firefox) when trying to visit the frontend:

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://localhost:8000/v1/auth_strategies. (Reason: CORS request did not succeed). Status code: (null).

Seems to be happening for all routers.

Additional information

No response

malexw commented 1 month ago

My first guess is that the server didn't start up properly, for some reason. Are you able to look at the Docker logs for the backend container and see if there are any error messages there?

EnronMusk commented 1 month ago

My first guess is that the server didn't start up properly, for some reason. Are you able to look at the Docker logs for the backend container and see if there are any error messages there?

No error messages in the backend container or frontend. The way I fixed it was setting the hostname for the front and backend to be the same, then the error no longer occurs.

tianjing-li commented 3 weeks ago

Closing this! Thanks @EnronMusk