Only a few seconds of audio before it stops

I’m using Mopidy 2.1.0 on a Raspberry Pi 3 (but not Pi MusicBox) running Raspbian Jessie Lite. I was having success with it yesterday but today it seems that I can only get a few seconds of audio from Pandora before it pauses.

Here’s the debug log from trying to play something on Pandora:

speaker-test confirms that the speakers are working fine.

Mopidy was configured by following the Debian instructions in the documentation, and the only additional changes I’ve made to the device are:

apt-get install gstreamer1.0-plugins-bad python-dev
easy_install pip
/usr/local/bin/pip install mopidy-moped mopidy-alarmclock mopidy-pandora

Here are my Python packages:

appdirs (1.4.2)
backports-abc (0.5)
cachetools (2.0.0)
certifi (2017.1.23)
chardet (2.3.0)
colorama (0.3.2)
html5lib (0.999)
Mopidy (2.1.0)
Mopidy-AlarmClock (0.1.6)
Mopidy-Moped (0.7.0)
Mopidy-Pandora (0.3.0)
MySQL-python (1.2.3)
ndg-httpsclient (0.3.2)
packaging (16.8)
pip (9.0.1)
pyasn1 (0.1.7)
pycrypto (2.6.1)
pycurl (7.19.5)
pydora (1.8.0)
pygobject (3.14.0)
Pykka (1.2.1)
pyOpenSSL (0.13.1)
pyparsing (2.1.10)
python-apt (
requests (2.13.0)
RPi.GPIO (0.6.2)
setuptools (34.3.0)
singledispatch (
six (1.10.0)
tornado (4.4.2)
urllib3 (1.9.1)
wheel (0.24.0)

I can’t explain why the local file was stopping, but I think signs are pointing to a buffering problem. I’m looking at issue #1280 for a potential fix.

Edit: The proposed patch does not fix the issue.