View Issue Details

IDProjectCategoryView StatusLast Update
0006625Talerwallet (WebExtension)public2022-11-04 20:53
ReporterFlorian Dold Assigned Tosebasjm  
PrioritynormalSeverityminorReproducibilityhave not tried
Status closedResolutionfixed 
Target Version0.9 
Summary0006625: give better errors when web extension backend doesn't respond
DescriptionDue to various browser issues, it is possible that the web extension background page doesn't respond properly to our messages.

Instead of just being "stuck", all the wallet UI pages should try to display better error messages.

Ideally we'd link to some FAQ with instructions on what to try/do about it.
Tagsneeds ui design

Activities

Franz Gratzer

2020-10-16 16:20

reporter   ~0017018

Florian asked me to provide the inspection output for the Taler Extension. Hopefully the "Console" output is the needed information:

Unchecked lastError value: Error: Could not establish connection. Receiving end does not exist. update.js:26
    schedule moz-extension://716c2fe1-f7dd-4588-b0be-852de013edf2/include/update.js:26
Unchecked lastError value: Error: Could not establish connection. Receiving end does not exist. extension.js:113
    <anonymous> moz-extension://716c2fe1-f7dd-4588-b0be-852de013edf2/extension.js:113
TypeError: PrecompiledScript.executeInGlobal: Argument 1 is not an object. ExtensionContent.jsm:567:25
Use of nsIFile in content process is deprecated. 3 NetUtil.jsm:253:8
wallet not available while handling header background.js:18666:21
[ ... the same line many times repeated ... ]
wallet not available while handling header background.js:18666:21
Uncaught (in promise) Error: Could not establish connection. Receiving end does not exist.
    updatePopupStats moz-extension://6fb2f216-7b39-4eea-b24d-d9e12ca1a45e/lib/ui-service.js:231
ui-service.js:231:25
wallet not available while handling header background.js:18666:21
wallet not available while handling header background.js:18666:21
Uncaught (in promise) Error: Could not establish connection. Receiving end does not exist.
    updatePopupStats moz-extension://6fb2f216-7b39-4eea-b24d-d9e12ca1a45e/lib/ui-service.js:231
ui-service.js:231:25
wallet not available while handling header background.js:18666:21
Uncaught (in promise) Error: Could not establish connection. Receiving end does not exist.
    updatePopupStats moz-extension://6fb2f216-7b39-4eea-b24d-d9e12ca1a45e/lib/ui-service.js:231
ui-service.js:231:25
wallet not available while handling header background.js:18666:21
[ ... the same line repeated ... ]
wallet not available while handling header background.js:18666:21
Uncaught (in promise) Error: Could not establish connection. Receiving end does not exist.
    updatePopupStats moz-extension://6fb2f216-7b39-4eea-b24d-d9e12ca1a45e/lib/ui-service.js:231
ui-service.js:231:25
wallet not available while handling header background.js:18666:21
wallet not available while handling header background.js:18666:21
Uncaught (in promise) Error: Could not establish connection. Receiving end does not exist.
    updatePopupStats moz-extension://6fb2f216-7b39-4eea-b24d-d9e12ca1a45e/lib/ui-service.js:231
ui-service.js:231:25
wallet not available while handling header background.js:18666:21
[ ... the same line repeated ... ]
wallet not available while handling header background.js:18666:21
This page uses the non standard property “zoom”. Consider using calc() in the relevant property values, or using “transform” along with “transform-origin: 0 0”. popup.html
wallet not available while handling header background.js:18666:21
[ ... the same line repeated ... ]
wallet not available while handling header background.js:18666:21
could not retrieve balances Error: wallet core not available
    OperationFailedError moz-extension://94bd416f-acb4-4859-8a1a-2a39c5cb764c/dist/pageEntryPoint.js:4236
    callBackend moz-extension://94bd416f-acb4-4859-8a1a-2a39c5cb764c/dist/pageEntryPoint.js:10525
pageEntryPoint.js:10953:26
    updateBalance moz-extension://94bd416f-acb4-4859-8a1a-2a39c5cb764c/dist/pageEntryPoint.js:10953
    rejected moz-extension://94bd416f-acb4-4859-8a1a-2a39c5cb764c/dist/pageEntryPoint.js:526
wallet not available while handling header background.js:18666:21
[ ... the same line repeated ... ]
wallet not available while handling header background.js:18666:21
Uncaught (in promise) Error: Could not establish connection. Receiving end does not exist.
    updatePopupStats moz-extension://6fb2f216-7b39-4eea-b24d-d9e12ca1a45e/lib/ui-service.js:231
ui-service.js:231:25
wallet not available while handling header background.js:18666:21
[ ... the same line many times repeated ... ]
wallet not available while handling header background.js:18666:21
Uncaught (in promise) Error: Could not establish connection. Receiving end does not exist.
    updatePopupStats moz-extension://6fb2f216-7b39-4eea-b24d-d9e12ca1a45e/lib/ui-service.js:231
ui-service.js:231:25
wallet not available while handling header background.js:18666:21
Uncaught (in promise) Error: Could not establish connection. Receiving end does not exist.
    updatePopupStats moz-extension://6fb2f216-7b39-4eea-b24d-d9e12ca1a45e/lib/ui-service.js:231
ui-service.js:231:25
wallet not available while handling header background.js:18666:21
[ ... the same line many times repeated ... ]
wallet not available while handling header background.js:18666:21
Uncaught (in promise) Error: Could not establish connection. Receiving end does not exist.
    updatePopupStats moz-extension://6fb2f216-7b39-4eea-b24d-d9e12ca1a45e/lib/ui-service.js:231
ui-service.js:231:25

Franz Gratzer

2020-10-16 16:30

reporter   ~0017019

I forgot to add my screenshots.

db.png shows original settings before I switched all values to "true". But that didn't help. (even after re-starting Firefox.)

loading.png shows what I get after I try to withdraw KUDOS into my browser wallet. (This screen stays forever.)
loading.png (29,275 bytes)   
loading.png (29,275 bytes)   
db.png (37,917 bytes)   
db.png (37,917 bytes)   

Florian Dold

2020-10-16 17:05

manager   ~0017020

Thanks, these are exactly the logs I was looking for. From the logs, it's not really clear what's going wrong, other than "the WebExtension UI is unable to talk to the WebExtension background page".

Just to confirm, is this using the latest version of the wallet from the Mozilla Addon store? (Should show up as "0.8.0.2" under about:addons)

I wasn't able to reproduce this myself with 78.3.0esr. We had a similar problem in the past, where the extension simple wouldn't work on certain profiles.

Would it be possible for you to try the Taler wallet under a fresh Firefox profile? You can either start Firefox as "firefox --new-instance --ProfileManager" or go to about:profiles to run it in a new profile.

Once we know if this is an issue with certain profiles / configurations, we can figure out what's going on from there.

Franz Gratzer

2020-10-16 17:53

reporter   ~0017021

Yes 0.8.0.2 is the Version number I get if I open the details view in the Add-on Manager.

The Taler extension instantly worked in the new profile where this was the only extension without any personalisation of the browser.

My original profile might be rather unusual. I always use private browsing, delete all data when closing the browser, I use Adblocker Ultimate and have the Gnome Extensions manager installed. Aside from that I have made several adjustments for more privacy (but I didn't need to go into the "about:config" page for that. So it shouldn't be way out of the ordinary.)

sebasjm

2022-01-20 16:08

developer   ~0018648

I have added a notification that shows a title (that depends on the page) and the error message when opened.
Also, if devMode is on it will show the details.

The next step is to add some categories to make suggestions based on the error code.

Issue History

Date Modified Username Field Change
2020-10-16 11:17 Florian Dold New Issue
2020-10-16 11:17 Florian Dold Status new => assigned
2020-10-16 11:17 Florian Dold Assigned To => Florian Dold
2020-10-16 16:20 Franz Gratzer Note Added: 0017018
2020-10-16 16:30 Franz Gratzer Note Added: 0017019
2020-10-16 16:30 Franz Gratzer File Added: loading.png
2020-10-16 16:30 Franz Gratzer File Added: db.png
2020-10-16 17:05 Florian Dold Note Added: 0017020
2020-10-16 17:53 Franz Gratzer Note Added: 0017021
2021-08-24 20:43 Christian Grothoff Assigned To Florian Dold => sebasjm
2021-08-24 20:53 Christian Grothoff Target Version => 0.9
2022-01-19 15:39 sebasjm Tag Attached: needs ui design
2022-01-20 16:08 sebasjm Status assigned => resolved
2022-01-20 16:08 sebasjm Resolution open => fixed
2022-01-20 16:08 sebasjm Note Added: 0018648
2022-11-04 20:53 Christian Grothoff Status resolved => closed
2023-04-13 20:37 Florian Dold Category wallet (WebExtensions) => wallet (WebExtension)