You need to sign in to do that
Don't have an account?
SFDX CLI Login error /SFDX CLIでログインできない
SFDX CLIでログインする際にエラーとなります。
【エラー内容】
{"name":"sfdx","hostname":"XXXX,"pid"XXXX,"log":"AuthWebLoginCommand","level":50,"msg":"[ 'ERROR running force:auth:web:login: ',\n 'connect ECONNREFUSED 101.53.171.152:443' ]","time":"2020-04-15T04:58:32.910Z","v":0}
解決策をご存知でしょうか?
--------------------------------------------
English follows
When I logged in salesforce by SFDX CLI,I caught error.
Error detail is below,
{"name":"sfdx","hostname":"XXXX,"pid"XXXX,"log":"AuthWebLoginCommand","level":50,"msg":"[ 'ERROR running force:auth:web:login: ',\n 'connect ECONNREFUSED 101.53.171.152:443' ]","time":"2020-04-15T04:58:32.910Z","v":0}
Would you teach me solution?
Thanks,
Ryo
This appears to be an authentication issue related to proxy. Can you check for below points and see if it fixes the issue
>>Please check the system environment variable using the correct value and format required username/pw
e.g. set HTTP_PROXY=http://username:pwd@proxy.company.com:8080
>> Also, update the CLI version by running the command in CLI : sfdx update
https://developer.salesforce.com/docs/atlas.en-us.sfdx_setup.meta/sfdx_setup/sfdx_setup_update_cli.htm
>> Please add the below parameter in the sfdx-project.json file
{
"oauthLocalPort" : "8080"
}
Please find the below document for reference:
https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_ws_config.htm
https://thucnguyen77.blogspot.com/
https://developer.salesforce.com/forums/?id=9060G0000005Z6jQAE
>>Try giving the path something like ‘C:\Users\xyz\Documents\Company Documents’ instead of C:\Users\xyz\Documents\Company Documents/demo in the CLI
Hope this helps you. Please mark this answer as best so that others facing the
same issue will find this information useful.
Thank you
All Answers
This appears to be an authentication issue related to proxy. Can you check for below points and see if it fixes the issue
>>Please check the system environment variable using the correct value and format required username/pw
e.g. set HTTP_PROXY=http://username:pwd@proxy.company.com:8080
>> Also, update the CLI version by running the command in CLI : sfdx update
https://developer.salesforce.com/docs/atlas.en-us.sfdx_setup.meta/sfdx_setup/sfdx_setup_update_cli.htm
>> Please add the below parameter in the sfdx-project.json file
{
"oauthLocalPort" : "8080"
}
Please find the below document for reference:
https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_ws_config.htm
https://thucnguyen77.blogspot.com/
https://developer.salesforce.com/forums/?id=9060G0000005Z6jQAE
>>Try giving the path something like ‘C:\Users\xyz\Documents\Company Documents’ instead of C:\Users\xyz\Documents\Company Documents/demo in the CLI
Hope this helps you. Please mark this answer as best so that others facing the
same issue will find this information useful.
Thank you
Thank you so much!
I solved this problem by setting system environments.
Regards,
Ryo