PromyLOPh / pianobar

Console-based pandora.com player
http://6xq.net/pianobar/
Other
1.74k stars 323 forks source link

Failure data from the peer #621

Closed HoussemCharf closed 7 years ago

HoussemCharf commented 7 years ago
Unrecognized key tls_fingerprint at /home/pi/.config/pianobar/config:65
Welcome to pianobar (2016.06.02-dev)! Press ? for a list of commands.
Control fifo at /home/pi/.config/pianobar/ctl opened
Login... Network error: Failure when receiving data from the peer

Linux raspberrypi 4.9.20-v7+ #985 SMP Mon Apr 3 10:30:44 BST 2017 armv7l GNU/Linux

i ve tried digging through issues but none seems to work for me. the unrecognized key issue is what i dont get most cause i made sure i had the current fingerprint

PromyLOPh commented 7 years ago

The fingerprint has been removed long ago, see commit 61dbc218e747f1b550a2615ffe3065024db29239

Connecting to Pandora works for me, so this might be a temporary error.

HoussemCharf commented 7 years ago

i am still getting the error even after deleting the fingerprint line :/ Welcome to pianobar (2016.06.02-dev)! Press ? for a list of commands. (i) Control fifo at /home/pi/.config/pianobar/ctl opened (i) Login... Network error: Failure when receiving data from the peer

HoussemCharf commented 7 years ago

i solved it by changing my dns ... still tho it's worth investigating sound like proxy problem cause i ve tried working proxies yet nothing.

PromyLOPh commented 7 years ago

Can you be a little more specific?

HoussemCharf commented 7 years ago

i live outside of the us so obviously i had to activate the proxy setting in config somehow that didnt work for me it kept showing me the error i mentioned it but an idea crossed my mind i am used to open pandora in my laptop using dns provided here portaller.com so i applied the same thing in my raspberry i set up the DNS and desactivated proxy setting then it was fixed but as i said the real issue is worth investigating when proxy setting is on Network error: Failure when receiving data from the peer still show up now i made sure the proxies i used in the config are working so there is an issue there :/

PromyLOPh commented 7 years ago

Which proxy did you use and did you set up proxy = XXX or control_proxy = XXX?

HoussemCharf commented 7 years ago

i did use a US based proxy and i did set it up in the config as it should be with the port i even tested it with my browser ofc i also removed the # control_proxy = http://52.34.132.230:3128/ it was something like this . Anyway, thank you soo much for the project btw i wish i can be more helpful to track the issue but i am not really good at C. strangly no one reported this before :/

PromyLOPh commented 7 years ago

This particular proxy asks for credentials and thus won’t work. However in general control_proxy works fine for me.

tkfu commented 7 years ago

Proxies can be a a bit finicky, especially if you're just grabbing a random free one. I was running into that same issue recently, and ended up writing a script to generate config files for pianobar as part of a Yocto layer. @HoussemCharf, you could easily just factor out the proxy finding logic if you don't want the rest of it: https://github.com/advancedtelematic/meta-jukebox/blob/master/recipes-multimedia/patiobar/files/start-patiobar.py