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

Server listening on localhost has not been accessed error #12

Closed
GOOSLI opened this issue Mar 7, 2024 · 10 comments
Closed

Server listening on localhost has not been accessed error #12

GOOSLI opened this issue Mar 7, 2024 · 10 comments

Comments

@GOOSLI
Copy link

GOOSLI commented Mar 7, 2024

  • 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
@GOOSLI
Copy link
Author

GOOSLI commented Mar 8, 2024

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

@GOOSLI
Copy link
Author

GOOSLI commented Mar 8, 2024

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

@justinknguyen
Copy link
Owner

justinknguyen commented Mar 8, 2024

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

@justinknguyen
Copy link
Owner

@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

@GOOSLI
Copy link
Author

GOOSLI commented Mar 8, 2024

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

@justinknguyen
Copy link
Owner

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?

@GOOSLI
Copy link
Author

GOOSLI commented Mar 8, 2024

I did like that. Is that correct?

image

@justinknguyen
Copy link
Owner

justinknguyen commented Mar 9, 2024

I did like that. Is that correct?

image

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

@GOOSLI
Copy link
Author

GOOSLI commented Apr 5, 2024

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.

@justinknguyen
Copy link
Owner

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

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

3 participants
@justinknguyen @GOOSLI and others