musicsync icon indicating copy to clipboard operation
musicsync copied to clipboard

Read timeouts on spotify api

Open schniedan opened this issue 3 years ago • 5 comments

Hi Max, thanks heaps for moving this to java11!

I'm trying to run it on latest MacOS 12.1.

When running it, it runs into read timeout exceptions on the spotify.api. Any clues? Running ping or normal curl commands from the same terminal works just fine.

Cheers, Andreas

schniedan avatar Feb 21 '22 19:02 schniedan

Hi Max, thanks heaps for moving this to java11!

I'm trying to run it on latest MacOS 12.1.

When running it, it runs into read timeout exceptions on the spotify.api. Any clues? Running ping or normal curl commands from the same terminal works just fine.

Cheers,

Andreas

Hey Andreas, How did you get this run on MacOS? Stream_reader.pl requests pacmd and pactl on my system, but I did not found the binaries for macOS

sharpSteff avatar Jul 05 '22 10:07 sharpSteff

For pacmd as part of pulseaudio: https://formulae.brew.sh/formula/pulseaudio

The weird thing is that I don't get any proper logs out of the musicsync application running for hours until it sometimes decides to show me a timeout.

schniedan avatar Jul 05 '22 17:07 schniedan

When running the app in me Linux VM, I noticed that stream_recorder.pl is called for every single track from the requested playlist. So far so good, but my Spotify queues all other tracks from the playlist as well. seems linke stream_recorder.pl does not recognize this and keeps on recording until Spotify stops. Perhaps this produces the timeout on your side.

sharpSteff avatar Jul 06 '22 09:07 sharpSteff

I tried calling stream_recorder.pl from terminal, with my parameters and this works like charm perl stream_recorder.pl --uri 'spotify:album:<ALBUMID>' --format mp3 --outdir records

I'll try to build the musicsync app around this call.

sharpSteff avatar Jul 06 '22 09:07 sharpSteff

For pacmd as part of pulseaudio: https://formulae.brew.sh/formula/pulseaudio

The weird thing is that I don't get any proper logs out of the musicsync application running for hours until it sometimes decides to show me a timeout.

Thanks!

How did you make Spotify findable for the stream_reader.pl. When installing it via brew or Spotify page, that does not work.

sharpSteff avatar Aug 10 '22 07:08 sharpSteff