Skip to main content

[Problem]

I want to authorize my playground of trailhead from VSCode,but get the error below.

I use a Mac Notepad of my company and i can't disconnect the vpn.

I've tried the solutions from community include...

1. change the authorization URL to customURL and the url ends with ".my.salesforce.com

2.confirm the API enabled for the profile of the user

3.export NODE_TLS_REJECT_UNAUTHORIZED=0 

4.export REQUESTS_CA_BUNDLE='/Library/Application Support/Netskope/STAgent/data/nscacert.pem'

but it can not solved. can anyone knows the solution.

 

[error]

AuthCodeExchangeError

Error authenticating with auth code due to: request to https://empathetic-impala-obj66i-dev-ed.trailblaze.my.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.

4 Antworten
  1. 8. Juli 2024, 12:07

    Thx for the answer, and finally i found the reason of the problem is the proxy of my company. I can authorize the sandbox with wireless network of public internet. I'll inquiry the IT support of my company and close the ticket.

0/9000