aergoio / aergo-connect

Aergo Connect (Chrome extension)
https://chrome.google.com/webstore/detail/aergo-connect/iopigoikekfcpcapjlkcdlokheickhpc
MIT License
3 stars 2 forks source link

When staking "Confirm" button seems like NOT responding + tx built after 60 seconds (while it logs me off). #42

Open Netucet opened 1 year ago

Netucet commented 1 year ago

When staking (or doing any operation):

Confirm button seems like it is not responding - I can see the hand, but when I click on it, it takes Ledger and Aergo Connect around 50-60 seconds to build a transaction in Ledger device, until I am able confirm it.

At the same time it seems like Aergo Connect logs users off after 60 seconds, so when I'm finally able to confirm the transaction in Ledger: 1) I have to log into Aergo Connect again to see what happens 2) The transaction doesn't go through (in many cases).

The problem in one image (see below):

1) When clicking on "Confirm", nothing happens for at least 60 seconds. It can log me off meanwhile from Aergo Connect, so I need to move my mouse all the time.

2) After cca 50 - 80 seconds finally the "Please confirm the transaction in your device" appears. I can finally confirm on Ledger.

3) After confirming on Ledger, it takes another 50 - 80 seconds of "Sending to network" - and again it can Log me off meanwhile if I do not move the mouse all the time. aergo_panorama

Netucet commented 1 year ago

I have recorded a video illustrating how extremely slow it is: (I had problem with Aergo Connect already before, but in connection with Ledger it is even worse. Btw. the old Aergo extension worked pretty well, but since we upgraded - like 2 years ago - the extension became very slow). So what you can see in the video - I tried to send 1 Aergo from my Ledger account:

kroggen commented 1 year ago

Thank you for informing about this problem!

Can you inform what OS are you using? And what is the Browser?

Can you right-click on the extension window and open the Developer Panel? Then please send us a print of the Console screen

Netucet commented 1 year ago

Windows 10 Pro 64bit Version: 21H1 Build: 19043.2251 (But not so long ago I had Win 7 installed and AFAIR, the problem with extra long time of everything was the same).

Chrome: 107.0.5304.89

Dev tool - Console tab: console_screen

kroggen commented 1 year ago

I made a test app and put it on this (temporary) URL:

https://aergoio.github.io/test-ledger-on-browser/

Could you test it?

This app will send 0.1 aergo to an account, but it uses the testnet. You can put funds in the sender account using the faucet. The sender account is the first one from the Ledger device.

On my computer it runs relatively fast. I am using a Mac.

It will print to the browser console the time used for each operation. Please send me a screenshot of the browser console after using the app.

Netucet commented 1 year ago

Got 100 test tokens, clicked Send transaction, approved in Ledger. Tried it twice.

It doesn't seem to do anything. After 10 minutes of waiting (and still moving my mouse - so Aergo Connect wouldn't log me off) it was still "Sending transaction".

This is what I still see after 10 minutes of waiting: sending_cut

Testnet explorer also confirms, no transaction was sent. Here is the Console screenshot:

Console_test

kroggen commented 1 year ago

It turns out that this app does not use Aergo Connect. It means that when opening the browser console, it must be from the main page. Anyway, I suspect that you may be experiencing some network/connection problems. How good is your internet connection? In which country/region are you located?

Netucet commented 1 year ago

Internet connection is OK. Central Europe. 30 Mbps download 15 Mbps upload. 44 ms ping

aergo_internet_connection

Netucet commented 1 year ago
kroggen commented 1 year ago

OK, so it worked! =)

The error message says that your account has no sufficient amount to process the transaction. You can expand the tx object and copy the address from the from field, then use that address to add funds using the faucet. After that you can repeat the test. Please send the screenshot of the console.

That first error message of "unable to reset the device" maybe is because the aergo app was not open on the device?

Netucet commented 1 year ago

1) I found the "from" address and added test tokens to it. Then executed the tx again.

2) No, the first error must mean something else - the Ledger is turned on and Aergo App is opened - it needs to be, otherwise I woundn't be able to confirm the transaction.

aergo_test_console_website_2

kroggen commented 1 year ago

It worked! :tada:

Thank you for your help! The above screen has enough information to then check what is the problem with Aergo Connect. We will try to discover the problem.

@graup check this out

Netucet commented 1 year ago

Ledger on + Aergo app opened.

It took 2 minutes (after pressing "Confirm" button) for the transaction to appear in Ledger for confirmation. It took another 3 minutes for the transaction to be sent. So this time = 5 minutes overall.

Aergo Connect was very slow even before Ledger support, but it seems like Ledger confirmation has added another 2 minutes to the overall time. I have recorded a video of the whole transaction:

Aergo_ledger_sending_problem_2.webm