I am trying to connect VS Code to playground SF Org but getting below error. Can someone help on this ?
Error authenticating with auth code due to: request to https://login.salesforce.com//services/oauth2/token failed, reason: self-signed certificate in certificate chain
This is most likely not an error with the Salesforce CLI. Please ensure all information is accurate and try again.
You can check my article on this error might be useful for you
After installing node.js it started working for me. Not sure what was the issue.
Even it's working on company's VPN
hello @Puneet Garg
please try this
The following solution worked for me:
- Run command prompt 𝐚𝐬 𝐚𝐝𝐦𝐢𝐧 (𝘚𝘵𝘢𝘳𝘵 > 𝘤𝘮𝘥 > 𝘙𝘪𝘨𝘩𝘵-𝘊𝘭𝘪𝘤𝘬 > 𝘙𝘶𝘯𝘈𝘴 𝘈𝘥𝘮𝘪𝘯)
- Run the command: 𝐧𝐞𝐭𝐬𝐭𝐚𝐭 -𝐚𝐨𝐧
- CTRL+F, to search for 𝟏𝟕𝟏𝟕
- Note the number displayed in the 𝐏𝐈𝐃 𝐜𝐨𝐥𝐮𝐦𝐧 in the same row where 1717 was found. In my case, it's 𝟒𝟔𝟒𝟖
- Open Task Manager > Click on Details Tab > Sort by PID
- Locate the number from step 4 (in my case 𝟒𝟔𝟒𝟖)
- Right-Click > End Task
- Go back to VS Code and run the command again "𝘚𝘵𝘢𝘳𝘵𝘪𝘯𝘨 𝘚𝘍𝘋𝘟: 𝘈𝘶𝘵𝘩𝘰𝘳𝘪𝘻𝘦 𝘢𝘯 𝘖𝘳𝘨"
you can also refer to refer to the below links which might help you further with the above issue.https://salesforce.stackexchange.com/questions/208158/authorizing-dev-hub-from-force-com-ide2-redirects-to-localhost-after-authorizinghttps://salesforce.stackexchange.com/questions/249857/cannot-connect-a-salesforce-org-using-authorize-an-org-in-vs-codehttps://salesforce.stackexchange.com/questions/251589/unable-to-authorize-salesforce-org-using-sfdx-trailhead
Hope it helps :), please mark it s best answer
hey @Nagendra Babu Pilli, I was trying it as part of this trailhead: https://trailhead.salesforce.com/content/learn/projects/quick-start-lightning-web-components/set-up-visual-studio-code
SFDX command is recognized, but SFDX update gives an error and same error comes if I try to authenticate an org. Not sure what is wrong.
I am not on company's VPN.
Hi @Puneet Garg,
I'm Nagendra from Trailhead Help team. Can you please let us know if this is a part of any Trailhead module/project? If so please share the link to the Trailhead badge so that we can check and assist further.
Looking forward to your response :)
Best Regards,
Nagendra
Hi @Puneet Garg,
Please follow the below stack exchange and forum link. There we can see it is related to a connection issue.
It just resolved by deactivating the company's VPN then re-authorizing via VSCode
Related links:-
https://trailhead.salesforce.com/pt-BR/trailblazer-community/feed/0D54S00000PeM4LSAV
I hope this will help.
Thank you