justinknguyen/BeatBind

Server listening on localhost has not been accessed error

Closed this issue · 10 comments

  • I filled the ClientID, ClientSecret and Port fields according to the instruction
  • After clicking Get Devices button the browser opens and I receive the following error in a few seconds.

BeatBind_UMx9jsFVhv

In the browser I receive an error: ERR_CONNECTION_REFUSED

I've tried several different free ports but the problem remains. Also I've tried running Chrome in safe mode but that didn't helped.

  • OS: Windows 10
  • Version 1.3.0

I ve managed to solve this problem:

  1. Opened the port in the firewall
  2. Clicked GetDevices button
  3. Copied the url from the Chrome when it opened before showing the error
  4. Closed the error message and closed the browser
  5. Clicked GetDevices button again and rapidly closed the browser before the page loaded
  6. The BeatBind application frozen at that moment
  7. Pasted the url into Chrome in a safe mode

Seemed like Chrome was redirecting from http to https by default

Isn't it possible to make the application listening the https callback?

Glad you managed to figure it out, but sorry you had to go through all that haha it should just work. I haven't seen that error yet, and I'm not too sure how to reproduce that.

Isn't it possible to make the application listening the https callback?

I'm not sure, I'll have to look into it when I have time, but the reason it's http is because that's what Spotify's examples were using https://developer.spotify.com/documentation/web-api/concepts/apps

Edit: I'll drop a zip file here where it's using https instead soon

@GOOSLI I added BeatBind-https.zip to the release. Let me know if that fixes anything for you https://github.com/justinknguyen/BeatBind/releases/download/v1.3.0/BeatBind-https.zip

Thank you for the response (and also thank you a lot for an application ❤️)!

I've checked the BeatBind-https.zip, but behaviour didn't changed a lot. Now BeatBind application doesn't show an error, but nothing happens and browser shows ERR_CONNECTION_REFUSED

Thank you for the response (and also thank you a lot for an application ❤️)!

I've checked the BeatBind-https.zip, but behaviour didn't changed a lot. Now BeatBind application doesn't show an error, but nothing happens and browser shows ERR_CONNECTION_REFUSED

hmm and I’m guessing you’ve already set the Redirect URI on the Spotify app to include https?

I did like that. Is that correct?

image

I did like that. Is that correct?

image

Yea, just testing it myself and it looks like the URI can't include https :(

Also FYI I've found out that HSTS setting for localhost in my browser for some reason was turned on and was permanently redirecting me to https. Top answer from here solved my problem and I excluded localhost from HSTS. So maybe you can put it in FAQ section.

Also FYI I've found out that HSTS setting for localhost in my browser for some reason was turned on and was permanently redirecting me to https. Top answer from here solved my problem and I excluded localhost from HSTS. So maybe you can put it in FAQ section.

Awesome! Thanks for letting me know, and I'll add that to the FAQ for sure. Thank you