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

chat: better handle case where network reachability is unknown #2040

Merged
merged 1 commit into from
Mar 6, 2024

Conversation

cebtenzzre
Copy link
Member

On Linux, QNetworkInformation uses NetworkManager by default. I don't have NetworkManager (I use systemd-networkd), so I get no download button, and I get this warning on console:

[Warning] (Tue Feb 27 12:41:53 2024): QObject::connect(QNetworkInformation, LLM): invalid nullptr parameter

Change this so that the download button appears and there is no warning.

Question: Is QNetworkInformation even the right thing here? It's clearly designed to report information about how the computer is connected to the local network, which on the plus side means that the download button immediately disappears when you disable your network adapter, but I don't think it would be accurate in the case where a computer is networked but not connected to the internet (e.g. the user's ISP is experiencing a service outage). And in cases like mine, it fails entirely, while e.g. an HTTP request to a known server would just work.

Signed-off-by: Jared Van Bortel <jared@nomic.ai>
@manyoso manyoso merged commit 0fc071d into main Mar 6, 2024
6 of 10 checks passed
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

Successfully merging this pull request may close these issues.

None yet

2 participants