XLabs / portal-bridge-ui

Portal Bridge UI
https://www.portalbridge.com/
25 stars 38 forks source link

[bug] Balance is not loading for X Layer network #1099

Open agodlevska opened 2 months ago

agodlevska commented 2 months ago

Is there an existing issue for this?

Current Behavior

Balance for X Layer network is not loading.

Failed to get token balances Error: missing response for request (value=[ { "error": { "code": -32079, "message": "Origin not allowed" }, "id": null, "jsonrpc": "2.0" } ], info={ "payload": { "id": 2, "jsonrpc": "2.0", "method": "eth_getBalance", "params": [ "0xd493066498ace409059fda4c1bcd2e73d8cffe01", "latest" ] } }, code=BAD_DATA, version=6.13.2)
    at makeError (pb-index-Bk8S0RNv.js:271:19452)
    at pb-index-Bk8S0RNv.js:272:214928
Screenshot 2024-09-20 at 12 50 28

Expected Behavior

Balance is loading for all tokens.

Screenshot 2024-09-20 at 12 57 10

Steps To Reproduce

  1. Open https://portalbridge.com/
  2. Select X Layer network (MetaMask wallet was automatically connected)
  3. Check tokens balances

Environment

- OS: macOS Sonoma 14.6.1
- Wallet: MetaMask, Coinbas
- Browser: Google Chrome Version 129.0.6668.58 (Official Build) (x86_64)

Anything else?

No response

agodlevska commented 4 weeks ago

Checked on https://portalbridge.com/. Issue is still reproducible, balance for X Layer network is not loading.

From:

Failed to get token balances Error: missing response for request (value=[ { "error": { "code": -32079, "message": "Origin not allowed" }, "id": null, "jsonrpc": "2.0" } ], info={ "payload": { "id": 2, "jsonrpc": "2.0", "method": "eth_call", "params": [ { "data": "0x70a08231000000000000000000000000d493066498ace409059fda4c1bcd2e73d8cffe01", "to": "0x5866709f926f26c5870191f40333ac462b917bc0" }, "latest" ] } }, code=BAD_DATA, version=6.13.3)
    at makeError (pb-index-DDkttb0r.js:271:19340)
    at pb-index-DDkttb0r.js:272:215053
Screenshot 2024-10-25 at 11 07 04

To:

Failed to get token balances Error: missing response for request (value=[ { "error": { "code": -32079, "message": "Origin not allowed" }, "id": null, "jsonrpc": "2.0" } ], info={ "payload": { "id": 2, "jsonrpc": "2.0", "method": "eth_getBalance", "params": [ "0xd493066498ace409059fda4c1bcd2e73d8cffe01", "latest" ] } }, code=BAD_DATA, version=6.13.3)
    at makeError (pb-index-DDkttb0r.js:271:19340)
    at pb-index-DDkttb0r.js:272:215053
Screenshot 2024-10-25 at 11 07 14
tsadovska commented 1 week ago

Rechecked the issue on https://portalbridge.com/, it is still reproducible.