PromyLOPh/pianobar

Hangs on "Get stations..."

knightofiam opened this issue · 6 comments

Subject of the issue

As of October 31, 2022, pianobar hangs on "Get stations..." after logging in. I can play Pandora via the website just fine using the same login. I use pianobar just about every day and it was working fine before the 31st. I haven't made any changes to the pianobar version, configuration, my pandora account, or my system recently.

Your environment

  • version of pianobar
    2022.04.01
  • your Linux distribution and release version
    macOS Monterey 12.4
  • ffmpeg/libav version and the flags it was compiled with (if you compiled yourself)
    5.1.2
  • your config file
audio_quality = high
autostart_station = 110451442715729771

Steps to reproduce

$ pianobar
Welcome to pianobar (2022.04.01)! Press ? for a list of commands.
(i) Control fifo at /Users/aaron/.config/pianobar/ctl opened
[?] Email: [redacted]@[redacted].com
[?] Password:
(i) Login... Ok.
(i) Get stations...

Expected behaviour

Autostart station should start playing after login.

Actual behaviour

Hangs on "Get stations..." after login. No error messages.

Debugging steps I've tried

Deleted content of ~/.config/pianobar. No change.
Restarted computer. No change.
sudo killall pianobar, then execute pianobar again. No change.

It's working again today, and I have no idea why. Didn't get a chance to debug - I will if it happens again. I was wondering if it could be a firewall issue at the specific WiFi location where it happened, but it seems pianobar only uses http/s, and I was able to stream from pandora.com with no problem at the same location, so I don't think that's the cause. It will be interesting to test again at that location again though to see if it continues working. Or maybe it was an ephemeral, region-specific, pandora outage? I guess we can't tell without the debugging info. Sorry!

Thanks, I'll keep that in mind in case I find myself in the same situation again, and see if I can run Pandora's iOS app on my phone.

So I discovered it's only occurring on a specific Wi-Fi network. The iOS app works just fine so the API must be doing something different than the mobile app. I ran PIANOBAR_DEBUG=1 pianobar but you said "on a debug build", and I can't find any documentation on how to create a debug build. I didn't get any debugging output on the installed version, which is via Homebrew.

I also examined the ruby script for any clues on how to set a debug flag, but not seeing anything:

https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/pianobar.rb

I really don't want to reinvent the wheel by reverse engineering the ruby script, to get pianobar built from source on macOS. It would be great it if it was something along the lines of git clone, ./configure, make, make install, and it just worked. But unfortunately it looks like there's a lot of technicalities involving editing the Makefile, configuring compiler flags, tweaking environment variables, installing dependencies, etc. Otherwise, if you could explain the simplest way to get a debug build on macOS, I'd be willing to test it.