Skip to content

Uniswap sometimes cann't connect to the Web3 browser #2445

@DangLin012

Description

@DangLin012

Bug Description
When I use Uniswap to log in to the Web3 browser, sometimes I can’t log in. It is found through Log that Dapp does not call requestAccounts.

Steps to Reproduce

  1. The test is on Android Mobile. I use the Trust Wallet Web3 provider to test, the demo download link: https://github.com/trustwallet/trust-web3-provider/tree/1.0.5,
  2. I just replace the url "https://js-eth-sign.surge.sh" to "https://app.uniswap.org/"
  3. It is ok when I first run the demo, then I click the address on the top webpage, Dapp would show actionsheet, than click the "Change", next reload the Webview found that Dapp would connect the Web3 failed. It is found through Log that Dapp does not call requestAccounts

The Dapp log is below:
2021-09-24 12:42:21.816 22218-22218/com.trust.web3.demo I/chromium: [INFO:CONSOLE(2)] "[Redux-LocalStorage-Simple] Invalid load 'redux_localstorage_simple_lists' provided. Check your 'states' in 'load()'. If this is your first time running this app you may see this message. To disable it in future use the 'disableWarnings' flag, see documentation.", source: https://app.uniswap.org/static/js/35.a4ea1615.chunk.js (2)
2021-09-24 12:42:21.930 22218-22218/com.trust.web3.demo I/System.out: loaded: https://app.uniswap.org/#/
2021-09-24 12:42:21.986 22218-22243/com.trust.web3.demo E/GPUAUX: [AUX]GuiExtAuxCheckAuxPath:630: Null anb
2021-09-24 12:42:21.986 22218-22243/com.trust.web3.demo I/chatty: uid=10071(com.trust.web3.demo) RenderThread identical 2 lines
2021-09-24 12:42:21.986 22218-22243/com.trust.web3.demo E/GPUAUX: [AUX]GuiExtAuxCheckAuxPath:630: Null anb
2021-09-24 12:42:22.175 22218-22218/com.trust.web3.demo I/System.out: loaded: https://app.uniswap.org/#/swap
2021-09-24 12:42:22.388 22218-22243/com.trust.web3.demo E/GPUAUX: [AUX]GuiExtAuxCheckAuxPath:630: Null anb
2021-09-24 12:42:22.390 22218-22243/com.trust.web3.demo I/chatty: uid=10071(com.trust.web3.demo) RenderThread identical 5 lines
2021-09-24 12:42:22.390 22218-22243/com.trust.web3.demo E/GPUAUX: [AUX]GuiExtAuxCheckAuxPath:630: Null anb
2021-09-24 12:42:22.480 22218-22218/com.trust.web3.demo I/chromium: [INFO:CONSOLE(1)] "Clearing batch [object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]", source: https://app.uniswap.org/static/js/main.cb61304d.chunk.js (1)
2021-09-24 12:42:22.511 22218-22243/com.trust.web3.demo E/GPUAUX: [AUX]GuiExtAuxCheckAuxPath:630: Null anb
2021-09-24 12:42:22.511 22218-22243/com.trust.web3.demo I/chatty: uid=10071(com.trust.web3.demo) RenderThread identical 2 lines
2021-09-24 12:42:22.511 22218-22243/com.trust.web3.demo E/GPUAUX: [AUX]GuiExtAuxCheckAuxPath:630: Null anb
2021-09-24 12:42:22.562 22218-22243/com.trust.web3.demo E/GPUAUX: [AUX]GuiExtAuxCheckAuxPath:630: Null anb
2021-09-24 12:42:22.564 22218-22243/com.trust.web3.demo I/chatty: uid=10071(com.trust.web3.demo) RenderThread identical 9 lines
2021-09-24 12:42:22.564 22218-22243/com.trust.web3.demo E/GPUAUX: [AUX]GuiExtAuxCheckAuxPath:630: Null anb
2021-09-24 12:42:22.678 22218-22218/com.trust.web3.demo I/chromium: [INFO:CONSOLE(1)] "Failed to get list at url https://app.tryroll.com/tokens.json Error: Token list failed validation: .tokens[6].name should match pattern "^[ \w.'+-%/À-ÖØ-öø-ÿ:]+$"; .tokens[49].name should match pattern "^[ \w.'+-%/À-ÖØ-öø-ÿ:]+$"", source: https://app.uniswap.org/static/js/main.cb61304d.chunk.js (1)
2021-09-24 12:42:22.679 22218-22218/com.trust.web3.demo I/chromium: [INFO:CONSOLE(1)] "list added fetching error Error: Token list failed validation: .tokens[6].name should match pattern "^[ \w.'+-%/À-ÖØ-öø-ÿ:]+$"; .tokens[49].name should match pattern "^[ \w.'+-%/À-ÖØ-öø-ÿ:]+$"", source: https://app.uniswap.org/static/js/main.cb61304d.chunk.js (1)
2021-09-24 12:42:22.682 22218-22218/com.trust.web3.demo I/chromium: [INFO:CONSOLE(1)] "Failed to get list at url https://raw.githubusercontent.com/SetProtocol/uniswap-tokenlist/main/set.tokenlist.json Error: Token list failed validation: .tokens[32].name should match pattern "^[ \w.'+-%/À-ÖØ-öø-ÿ:]+$"", source: https://app.uniswap.org/static/js/main.cb61304d.chunk.js (1)
2021-09-24 12:42:22.683 22218-22218/com.trust.web3.demo I/chromium: [INFO:CONSOLE(1)] "list added fetching error Error: Token list failed validation: .tokens[32].name should match pattern "^[ \w.'+-%/À-ÖØ-öø-ÿ:]+$"", source: https://app.uniswap.org/static/js/main.cb61304d.chunk.js (1)
2021-09-24 12:42:22.763 22218-22218/com.trust.web3.demo I/chromium: [INFO:CONSOLE(1)] "Failed to get list at url https://raw.githubusercontent.com/SetProtocol/uniswap-tokenlist/main/set.tokenlist.json Error: Token list failed validation: .tokens[32].name should match pattern "^[ \w.'+-%/À-ÖØ-öø-ÿ:]+$"", source: https://app.uniswap.org/static/js/main.cb61304d.chunk.js (1)
2021-09-24 12:42:22.782 22218-22218/com.trust.web3.demo I/chromium: [INFO:CONSOLE(1)] "interval list fetching error Error: Token list failed validation: .tokens[32].name should match pattern "^[ \w.'+-%/À-ÖØ-öø-ÿ:]+$"", source: https://app.uniswap.org/static/js/main.cb61304d.chunk.js (1)
2021-09-24 12:42:22.793 22218-22218/com.trust.web3.demo I/System.out: loaded: https://app.uniswap.org/#/swap
2021-09-24 12:42:22.880 22218-22218/com.trust.web3.demo I/chromium: [INFO:CONSOLE(1)] "Failed to get list at url https://app.tryroll.com/tokens.json Error: Token list failed validation: .tokens[6].name should match pattern "^[ \w.'+-%/À-ÖØ-öø-ÿ:]+$"; .tokens[49].name should match pattern "^[ \w.'+-%/À-ÖØ-öø-ÿ:]+$"", source: https://app.uniswap.org/static/js/main.cb61304d.chunk.js (1)
2021-09-24 12:42:22.901 22218-22218/com.trust.web3.demo I/chromium: [INFO:CONSOLE(1)] "interval list fetching error Error: Token list failed validation: .tokens[6].name should match pattern "^[ \w.'+-%/À-ÖØ-öø-ÿ:]+$"; .tokens[49].name should match pattern "^[ \w.'+-%/À-ÖØ-öø-ÿ:]+$"", source: https://app.uniswap.org/static/js/main.cb61304d.chunk.js (1)
2021-09-24 12:42:23.117 22218-22218/com.trust.web3.demo I/chromium: [INFO:CONSOLE(1)] "Clearing batch [object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]", source: https://app.uniswap.org/static/js/main.cb61304d.chunk.js (1)
2021-09-24 12:42:23.269 22218-22218/com.trust.web3.demo I/chromium: [INFO:CONSOLE(1)] "Fetching chunk [object Object] 13286423", source: https://app.uniswap.org/static/js/main.cb61304d.chunk.js (1)
2021-09-24 12:42:23.372 22218-22218/com.trust.web3.demo I/chromium: [INFO:CONSOLE(1)] "Clearing batch [object Object]", source: https://app.uniswap.org/static/js/main.cb61304d.chunk.js (1)
2021-09-24 12:42:25.017 22218-22218/com.trust.web3.demo I/chromium: [INFO:CONSOLE(2)] "[Redux-LocalStorage-Simple] TypeError: Cannot read property 'setItem' of null", source: https://app.uniswap.org/static/js/35.a4ea1615.chunk.js (2)
2021-09-24 12:42:25.017 22218-22218/com.trust.web3.demo I/chatty: uid=10071(com.trust.web3.demo) identical 1 line
2021-09-24 12:42:25.018 22218-22218/com.trust.web3.demo I/chromium: [INFO:CONSOLE(2)] "[Redux-LocalStorage-Simple] TypeError: Cannot read property 'setItem' of null", source: https://app.uniswap.org/static/js/35.a4ea1615.chunk.js (2)
2021-09-24 12:42:29.147 22218-22218/com.trust.web3.demo I/chromium: [INFO:CONSOLE(2)] "[Redux-LocalStorage-Simple] TypeError: Cannot read property 'setItem' of null", source: https://app.uniswap.org/static/js/35.a4ea1615.chunk.js (2)
2021-09-24 12:42:29.147 22218-22218/com.trust.web3.demo I/chatty: uid=10071(com.trust.web3.demo) identical 1 line
2021-09-24 12:42:29.148 22218-22218/com.trust.web3.demo I/chromium: [INFO:CONSOLE(2)] "[Redux-LocalStorage-Simple] TypeError: Cannot read property 'setItem' of null", source: https://app.uniswap.org/static/js/35.a4ea1615.chunk.js (2)

Expected Behavior
Just like other Dapp, Example PancakeSwap click disconnect the account,reload WebView would reconnect.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions