Can't connect any org under Linux Mint via
sfdx force:auth:web:login -r https://test.salesforce.com -a foo
sfdx force:auth:web:login -r https://foo.my.salesforce.com -a foo
sfdx force:auth:web:login -r https://cs100.salesforce.com -a foo
Browser opens --> username/pw --> …foo.my.salesforce.com/setup/secur/RemoteAccessAuthorizationPage.apexp …
I'm redirected to the RemoteAccessAuthorizationPage and there I'm stuck in a white screen.
On refresh Firefox gives me:
OAUTH_APPROVAL_ERROR_GENERIC : An unexpected error has occured during authentication. Please try again.
localhost didn’t send any data. ERR_EMPTY_RESPONSE
Same command on Mac OS works without any issues, org authenticated after seconds.
So I think it is an issue on the Linux machine.
This is what I've tried already:
- turned off firewall on device
- changed default browser
- cleared browser chach
- disabled pihole dns server
- connected via different network (mobile)
- tried test.salesforce, cs100.salesforce, mydomain.salesforce
The org I'm trying to connect right now is a Sandbox. But same behaviour with dev or prod.
There I've used a workaround via
sfdx force:auth:device:login– but https://login.salesforce.com/setup/connect isn't working with a sandbox and neither is https://test.salesforce.com/setup/connect.
Port 1717 seams to open up correctly on the command:
$ netstat -tulpn Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 xxx.x.x.x:1717 0.0.0.0:* LISTEN 11880/node
Any ideas what the problem is and how to overcome it?