-
Notifications
You must be signed in to change notification settings - Fork 107
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
Error: Network unreachable #154
Comments
I have the same problem. Error: Network unreachable. I have multiple services running on my linux ubuntu,songrec became unstable in last 2-3 days.in some scripts songrec working fine,but in a more than half it doesnt work,the same error. |
Hello Can you please paste the output of the Thank you, |
Here is the output for commands: `root@playlister:~# curl -I https://amp.shazam.com/ root@playlister:~# host amp.shazam.com Thank you, |
Hello @marin-m
host output:
|
Thank you, Does the issue occur both with the GUI and the command line/permanently? Are you using the distribution from the PPA/the rust source or Flatpak? (The CLI is not guaranteed to work witk Flatpak) Are you using a container or firewall system of any kind? It may be required to use a network capture analysis tool such as Wireshark (or a system debugging tool such as |
didn't test GUI, only CLI
using
I am using this library in docker container, and also behind firewall |
you think it's firewall issue? But it was working just fine |
In any case I think you should check the configuration of your container/firewall to ensure that the access to |
Thank you. Appreciate your help. Let me test it |
okay, disabling firewall (ufw) didn't make any difference so far |
How can we use proxies? |
proxychains works |
okay, now it doesn't work. Says the same thing |
I started getting this too. The
while
I then started poking around the code, I ended up compiling it with one crucial change: diff --git a/src/core/http_thread.rs b/src/core/http_thread.rs
index fe8910b..557174a 100644
--- a/src/core/http_thread.rs
+++ b/src/core/http_thread.rs
@@ -91,6 +91,7 @@ pub fn http_thread(http_rx: mpsc::Receiver<HTTPMessage>, gui_tx: glib::Sender<GU
gui_tx.send(GUIMessage::NetworkStatus(true)).unwrap();
}
_ => {
+ gui_tx.send(GUIMessage::ErrorMessage(error.to_string())).unwrap();
gui_tx.send(GUIMessage::NetworkStatus(false)).unwrap();
}
} Now we can see what the error is:
Ah! It had been pi-hole'd
Indeed this was a mistaken block AdguardTeam/AdguardFilters@3892bd6 So perhaps two takeaways:
|
has there been a fix or a work around? I get connections for a few minutes then a disconnect for a long while then it'll reconnect back for a little bit. Not entirely sure if its Just me or a common problem maybe with the servers. It says Shazam servers are not reachable, are you connected? and I am definitely connected. |
Shazam has introduced a limit on the number of requests, and then sends a 429 error. We also encountered this problem. |
Hello. I don't know why, but the library stopped working. It says:
Error: Network unreachable
, the command I used:songrec recognize mysong.mp3
The text was updated successfully, but these errors were encountered: