Skip to content
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

Read timeouts on spotify api #41

Open
schniedan opened this issue Feb 21, 2022 · 5 comments
Open

Read timeouts on spotify api #41

schniedan opened this issue Feb 21, 2022 · 5 comments

Comments

@schniedan
Copy link

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

@sharpSteff
Copy link

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

@schniedan
Copy link
Author

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.

@sharpSteff
Copy link

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
Copy link

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
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants