1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

`sfdx force:auth:web:login` で `localhost:1717` が応答しない

Posted at

メモです

起きた事

sfdx-cli で sandbox 環境の認証を通そうとしたら出来なかった。

sfdx-cli - npm

よく分からないけどバグっぽい。

Webserver not responding - force:web:auth:login on Linux · Issue #783 · forcedotcom/cli

コメントにあるようにダウングレードしてみたけど、自分の環境では変わらなかった。
以前使っていたバージョンでは認証出来ていたけど、何度かパッケージのアップデートをしてしまっていて、そのアップデート後のバージョンでは認証操作は試していなかったかも。
認証がパス出来ていたバージョンが分からない…。

WSL2 で起きていたので、 Windows 上に Node.js のバイナリを入れる所から試してみたけど変わらず。

回避策

force:auth:web:login ではなく force:auth:device:login を使う。

sfdx force:auth:device:login -r https://test.salesforce.com

なお @salesforce/plugin-auth の特定のバージョンを入れていると認証先に sandbox を指定できないので注意。その場合はアンインストールする。
今日色々試す過程で入れちゃったけど、本来は不要なプラグイン。

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?