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

Exception in Manage Sources when selecting Ollama #61

Closed
alensiljak opened this issue Feb 13, 2025 · 3 comments
Closed

Exception in Manage Sources when selecting Ollama #61

alensiljak opened this issue Feb 13, 2025 · 3 comments
Assignees

Comments

@alensiljak
Copy link
Contributor

In Manage Sources (/source), when selecting Ollama, this happens:

Image

The error is

app-1 | Error [FetchError]: request to http://localhost:11434/api/tags failed, reason: connect ECONNREFUSED 127.0.0.1:11434
app-1 | at (FetchError: request to http://localhost:11434/api/tags failed, reason: connect ECONNREFUSED 127.0.0.1:11434)
app-1 | at ClientRequest. (.next/server/chunks/738.js:1:44182)

My guess is that the problem is with the URL. I guess the localhost is hard-coded? Then we have the same problem with Docker container being unable to connect to localhost.
Perhaps configuring Ollama (URL) once should be enough. The setting could be reused and not configured multiple times?

@GwonHyeok
Copy link
Member

@alensiljak

We configured the UI to allow us to change the ollama url, but the
It seems to be an issue with the exception not being handled in the frontend.

We are currently checking

@GwonHyeok
Copy link
Member

aa8f0e9

@GwonHyeok GwonHyeok self-assigned this Feb 13, 2025
@alensiljak
Copy link
Contributor Author

Thank you, this now works. There is still this general issue where all the settings are forgotten or at least the values in the UI are showing at their default levels when coming back to the sources configuration page. #63

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