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

Connection refused to Spotify #12

Closed
eddiezane opened this issue Sep 18, 2017 · 4 comments
Closed

Connection refused to Spotify #12

eddiezane opened this issue Sep 18, 2017 · 4 comments

Comments

@eddiezane
Copy link

Seems that something changed under the hood and it can't connect to the local instance.

Codez/baritone[master ☂ ] npm test

> [email protected] test /Users/eddiezane/Codez/baritone
> electron .

[warn] kq_init: detected broken kqueue; not using.: Undefined error: 0
[warn] kq_init: detected broken kqueue; not using.: Undefined error: 0
[warn] kq_init: detected broken kqueue; not using.: Undefined error: 0
[warn] kq_init: detected broken kqueue; not using.: Undefined error: 0
app is ready
waiting for spotify...
{ [Error: connect ECONNREFUSED 127.0.0.1:4370]
  code: 'ECONNREFUSED',
  errno: 'ECONNREFUSED',
  syscall: 'connect',
  address: '127.0.0.1',
  port: 4370 }
{ [Error: socket hang up] code: 'ECONNRESET' }
connection failed; trying new port...
waiting for spotify...
{ [Error: connect ECONNREFUSED 127.0.0.1:4371]
  code: 'ECONNREFUSED',
  errno: 'ECONNREFUSED',
  syscall: 'connect',
  address: '127.0.0.1',
  port: 4371 }
{ [Error: socket hang up] code: 'ECONNRESET' }

Appears another one of my projects is broken as well that controlled the client.

@tma02
Copy link
Owner

tma02 commented Sep 19, 2017

Spotify recently changed their WebHelper port range to 4380 to 4389, will be updating baritone soon.

@simonmetcalfe
Copy link

FWIW I tried updating the port in Baritone today but still could not get it to work. Spotify web helper is definitely responding on 4380 and the client itself on 4381, but Baritone still fails to connect. You can also see in the terminal the error is different for ports 4380 and 4381 when Spotify is running, we get an ECONNRESET instead of ECONNREFUSED, but I'm not sure what the problem is from hereon :(

waiting for spotify...
{ [Error: socket hang up] code: 'ECONNRESET' }
connection failed; trying new port...
waiting for spotify...
{ [Error: socket hang up] code: 'ECONNRESET' }
connection failed; trying new port...
waiting for spotify...
{ [Error: connect ECONNREFUSED 127.0.0.1:4382]
code: 'ECONNREFUSED',
errno: 'ECONNREFUSED',
syscall: 'connect',
address: '127.0.0.1',
port: 4382 }
{ [Error: socket hang up] code: 'ECONNRESET' }

@lxzap
Copy link

lxzap commented Oct 9, 2017

I'm new to GitHub and just downloaded the app. It's not connecting for me either. How can I uninstall the app? Thanks.

@tma02
Copy link
Owner

tma02 commented Nov 29, 2017

This is probably the same issue that spotispy ran in to. I'll attempt the same fix I did for spotispy.

@tma02 tma02 closed this as completed in 2bc30d1 Nov 29, 2017
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

4 participants