forcedotcom / salesforcedx-vscode

Salesforce Extensions for VS Code
https://developer.salesforce.com/tools/vscode
BSD 3-Clause "New" or "Revised" License
947 stars 405 forks source link

Authorize an Org - localhost refused to connect #1535

Closed pksalesforce closed 5 years ago

pksalesforce commented 5 years ago

When I try to authorize an org, I get following error. It worked until few days ago.

This site can’t be reached localhost refused to connect. Search Google for localhost 1717 Oauth Redirect ERR_CONNECTION_REFUSED

pksalesforce commented 5 years ago

I added "oauthLocalPort" : 1919 to sfdx-project.json It still does not work. This is the cli version I currently have sfdx-cli/7.18.0-ee5dc8194c win32-x64 node-v10.15.3

kushal33 commented 5 years ago

I am also facing same issue

lcampos commented 5 years ago

Please provide the following data :

Are you behind a firewall or does your machine have any security rules blocking port 1717 ?

pksalesforce commented 5 years ago

VS Code Version - 1.36.1 Salesforce Extensions for VS Code - 46.8.0 Salesforce CLI version - 7.18.0 Operating System: Windows 10 64 bit I am not behind fire wall. It worked until about a week ago.

On Tue, Aug 6, 2019 at 8:30 PM lcampos notifications@github.com wrote:

Please provide the following data :

  • VSCode version
  • Salesforce extensions for VSCode version e.g. 46.8.0
  • Salesforce cli version e.g. 7.18 (you can run sfdx --version in your terminal to get this info)
  • Operative System

Are you behind a firewall or does your machine have any security rules blocking port 1717 ?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/forcedotcom/salesforcedx-vscode/issues/1535?email_source=notifications&email_token=ALIQH2OLW5YRHCHAUQ5OL23QDIJUFA5CNFSM4IJG27KKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD3W2YAA#issuecomment-518892544, or mute the thread https://github.com/notifications/unsubscribe-auth/ALIQH2JJH7MPAYJJOSCH2RLQDIJUFANCNFSM4IJG27KA .

-- Praveen Kanumuri Trailhead Profile https://trailhead.salesforce.com/en/me/00550000006I9kRAAS Salesforce Certifications http://certification.salesforce.com/certification-detail-print?conId=003G000002feDc7IAE

pksalesforce commented 5 years ago

I uninstalled and reinstalled VS Code and it is working now. Not sure what the issue was. Thank You.

On Wed, Aug 7, 2019 at 1:54 PM Praveen K pksalesforceid@gmail.com wrote:

VS Code Version - 1.36.1 Salesforce Extensions for VS Code - 46.8.0 Salesforce CLI version - 7.18.0 Operating System: Windows 10 64 bit I am not behind fire wall. It worked until about a week ago.

On Tue, Aug 6, 2019 at 8:30 PM lcampos notifications@github.com wrote:

Please provide the following data :

  • VSCode version
  • Salesforce extensions for VSCode version e.g. 46.8.0
  • Salesforce cli version e.g. 7.18 (you can run sfdx --version in your terminal to get this info)
  • Operative System

Are you behind a firewall or does your machine have any security rules blocking port 1717 ?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/forcedotcom/salesforcedx-vscode/issues/1535?email_source=notifications&email_token=ALIQH2OLW5YRHCHAUQ5OL23QDIJUFA5CNFSM4IJG27KKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD3W2YAA#issuecomment-518892544, or mute the thread https://github.com/notifications/unsubscribe-auth/ALIQH2JJH7MPAYJJOSCH2RLQDIJUFANCNFSM4IJG27KA .

-- Praveen Kanumuri Trailhead Profile https://trailhead.salesforce.com/en/me/00550000006I9kRAAS Salesforce Certifications http://certification.salesforce.com/certification-detail-print?conId=003G000002feDc7IAE

-- Praveen Kanumuri Trailhead Profile https://trailhead.salesforce.com/en/me/00550000006I9kRAAS Salesforce Certifications http://certification.salesforce.com/certification-detail-print?conId=003G000002feDc7IAE

ntotten commented 5 years ago

Related to this issue: https://success.salesforce.com/issues_view?id=a1p3A0000003dkDQAQ

cemerson commented 2 years ago

Dang I was hoping that success salesforce.com link would fix it but did not. I still get stuck on some localhost URL (http://localhost:1717/OauthRedirect?code=...) with "This site can’t be reached. localhost refused to connect". Am using a brand new dev account fwiw.