vscode-azure-blockchain-ethereum icon indicating copy to clipboard operation
vscode-azure-blockchain-ethereum copied to clipboard

No prompt to connect to Infura

Open pcko1 opened this issue 4 years ago • 7 comments

Problem

I get no interactive prompt to type in my credentials to connect to Infura when clicking Sign in to Infura account. I know I should be getting a prompt, after watching this video (go to 1:50).

Setup

Local

  • VS Code 1.55.0-insider
  • Local machine: macOS Big Sur 11.2.1 (M1 chip)

Remote

  • Remote machine (through Remote-SSH): Ubuntu 20.04
  • Blockchain Development Kit for Ethereum 1.6.0
  • npm 6.14.4
  • git 2.25.1
  • nodejs 10.19.0
  • truffle 5.2.6
  • Web3.js 1.2.9
  • Solidity 0.5.16
  • Ganache CLI v6.12.2 (ganache-core: 2.13.2)

Steps to replicate

After connecting to remote machine via Remote-SSH I press:

Screenshot 2021-03-26 at 19 36 50

I get no interactive prompt to login whatsoever and on the bottom of the screen I see:

Screenshot 2021-03-26 at 19 37 20

This keeps pending until it times out. If I click on it before timing out, I get:

Screenshot 2021-03-26 at 19 37 34

Happy to provide more details if needed.

pcko1 avatar Mar 26 '21 18:03 pcko1

Thank you @pcko1 for this. I just validated the login with Infura, albeit on a Windows based machine with success. The proper flow would be:

  1. Initiate the login to Infura, as you did above.
  2. The users default browser is then opened navigating to the infura login.
  3. User logs in with their credentials and on success is then told to close the browser and come back to the IDE.
  4. User sees the login in the status bar and can use the projects / integration to Infura.

The problem may be with Mac platform specifically, I will need to do some more testing there to confirm.

A short demo of this is below: interact

I did notice that a new captcha has been added to the login with Infura that does seem to be hidden, which means you need to login to Infura out of band and then login via the extension. I will investigate this on another thread.

caleteeter avatar Mar 26 '21 21:03 caleteeter

I think the problem is the remote Ubuntu server that I am SSHing to. I found out that the supported OS for Blockchain Development Kit for Ethereum is either Windows or macOS:

Screenshot 2021-03-27 at 11 18 48

Bit sad 😞

I have just installed it locally on my Mac (without firstly connecting to my remote Ubuntu machine via Remote-SSH extension) and the behavior is nominal (similar to the one you showcased above). Would be awesome to support Ubuntu in the future :)

pcko1 avatar Mar 27 '21 10:03 pcko1

Ah, ok, I think we are limited there because we are popping the default browser from the VS Code extension api. I will look into this, and see if we have any alternatives. Worst case we could possibly give you link and ask you to go login with a code (device code flow).

caleteeter avatar Mar 27 '21 14:03 caleteeter

I have the same issue but am using Ubuntu 20.04 via WSL 2 on Windows 10.

greglnye avatar May 20 '21 08:05 greglnye

@caleteeter is this extension being abandonware?

alexrainman avatar Dec 03 '21 04:12 alexrainman

Not at all, we are working a new version of this. Apologies on the lag on response here, not great. I will take a look at this and see if we can patch.

caleteeter avatar Dec 03 '21 06:12 caleteeter

@caleteeter thanks for a quick response. The more important functionality of this extension, debugging Smart Contracts, is broken, so when that release will be out?

alexrainman avatar Dec 03 '21 17:12 alexrainman