XRPL-Labs / Xaman-App

Xaman (Formerly XUMM) for iOS and Android (React Native)
https://support.xumm.app
Other
104 stars 48 forks source link

Testnet transaction fees not loading #103

Closed desimmons closed 9 months ago

desimmons commented 9 months ago

Describe the bug For testnet transactions, I see an intermittent bug where I'm not able to load the network's Tx fees.

To Reproduce Steps to reproduce the behavior:

  1. Go to https://dhali.io/docs/#/
  2. Click on 'Using Dhali APIs'
  3. Click the 'Xumm' tab
  4. Follow the video:

https://github.com/XRPL-Labs/Xaman-App/assets/11035824/29642b12-7a29-4204-80f2-c5ef4273a35c

Expected behavior The transaction fee should get populated

Environment

What build of XUMM are you running? Please provide the full version (you can find it in Settings > Advanced).

What device are you running XUMM on?

Additional context

Attach crash logs if available. Please ensure that these files do not contain any personal information.

WietseWind commented 9 months ago

Thanks for reporting!

@N3TC4T - I've heard this from several people.

desimmons commented 9 months ago

The problem seems to be related to the use of wss://testnet.xrpl-labs.com

wss://s.altnet.rippletest.net:51233 appears to be fine

N3TC4T commented 9 months ago

@desimmons I feel it's a connectivity issue to the TestNet nodes rather than app issue, is this happened randomly or always ? and can you share your session logs in with us ? (please remove your account info or any sensitive details from the logs before sharing)

desimmons commented 9 months ago

nodes rather than app issue, is this happened randomly or always ? and can you share your session logs in with us ? (please remove

It's been an issue I've noticed for a week or so now. Seems to happen more often than not, but not always.

[09:51:03.181] Xaman version 2.6.0_3166346_R 
[09:51:03.187] Device HONOR RKY-LX1 - OS Version 12 
[09:51:03.362] Current schema version: v15 
[09:51:03.363] Schema version is latest, No migration needed. 
[09:51:03.413] Storage compact: 0.50 MB / 0.27 MB - Should compact false 
[09:51:03.444] Timezone set to Europe/London 
[09:51:03.459] Settings [Locale]/[Currency]: EN/USD 
[09:51:03.479] Presented accounts: 
r...-Full  
r...-Full  
r...-Full  
r...-Full   
[09:51:03.542] Current Network Base/Owner reserve: 10/2 
[09:51:07.87] Connected to node wss://testnet.xrpl-labs.com [n9MPXBGgkA79GEgyknFWPuP7BWJmWjnSYKCtMLVuaKfQjkcNoB7o] 
[09:51:07.111] Subscribed to 4 accounts ["r...","r...","r...","r..."]
[09:51:07.271] Fetch account info [r...]: "actNotFound"
[09:51:07.288] Fetch account info [r...]: "actNotFound"
[09:51:07.303] Fetch account info [r...]: "actNotFound"
[09:51:08.939] Start Syncing with backend 
[10:01:47.225] Socket closed 
[10:01:47.529] Reconnecting network service... 
[10:01:48.678] Connected to node wss://testnet.xrpl-labs.com [n9MPXBGgkA79GEgyknFWPuP7BWJmWjnSYKCtMLVuaKfQjkcNoB7o] 
[10:01:48.692] Subscribed to 4 accounts ["r...","r...","r...","r..."]
[10:01:48.788] Fetch account info [r...]: "actNotFound"
[10:01:48.797] Fetch account info [r...]: "actNotFound"
[10:01:48.807] Fetch account info [r...]: "actNotFound"
[10:25:21.854] Socket closed 
[10:25:22.47] Reconnecting network service... 
[10:25:23.39] Connected to node wss://testnet.xrpl-labs.com [n9MPXBGgkA79GEgyknFWPuP7BWJmWjnSYKCtMLVuaKfQjkcNoB7o] 
[10:25:23.69] Subscribed to 4 accounts ["r...","r...","r...","r..."]
[10:25:23.264] Fetch account info [r...]: "actNotFound"
[10:25:23.277] Fetch account info [r...]: "actNotFound"
[10:25:23.306] Fetch account info [r...]: "actNotFound"
[11:03:43.22] Socket closed 
[11:03:43.31] Reconnecting network service... 
[11:03:43.48] Reconnecting network service... 
[11:03:43.65] Socket Error:  "Max. connection attempts exceeded"
[11:03:45.49] Socket Error:  "Max. connection attempts exceeded"
[11:03:46.60] Socket Error:  "Max. connection attempts exceeded"
[11:06:06.17] Reconnecting network service... 
[11:06:06.21] Socket Error:  "Max. connection attempts exceeded"
[11:19:13.155] Reconnecting network service... 
[11:19:13.158] Socket Error:  "Max. connection attempts exceeded"
[11:22:21.931] Reconnecting network service... 
[11:22:21.941] Socket Error:  "Max. connection attempts exceeded"
[11:23:45.593] Reconnecting network service... 
[11:23:45.594] Socket Error:  "Max. connection attempts exceeded"
[11:28:58.591] Reconnecting network service... 
[11:28:58.592] Socket Error:  "Max. connection attempts exceeded"
[11:36:39.674] Reconnecting network service... 
[11:36:39.682] Socket Error:  "Max. connection attempts exceeded"
[12:14:21.794] Reconnecting network service... 
[12:14:21.808] Socket Error:  "Max. connection attempts exceeded"
[12:14:47.11] Reconnecting network service... 
[12:14:47.12] Socket Error:  "Max. connection attempts exceeded"
[12:18:32.393] Reconnecting network service... 
[12:18:32.396] Socket Error:  "Max. connection attempts exceeded"
[12:24:14.301] Reconnecting network service... 
[12:24:14.313] Socket Error:  "Max. connection attempts exceeded"
[12:25:56.942] Reconnecting network service... 
[12:25:56.943] Socket Error:  "Max. connection attempts exceeded"
[12:29:12.908] Reconnecting network service... 
[12:29:12.909] Socket Error:  "Max. connection attempts exceeded"
[12:30:02.825] Unable to calculate available network fees: "Call timeout after 40 seconds"
[12:30:36.33] Unable to calculate available network fees: "Call timeout after 40 seconds"
[12:32:06.952] Unable to calculate available network fees: "Call timeout after 40 seconds"
[12:36:11.114] Reconnecting network service... 
[12:36:11.117] Socket Error:  "Max. connection attempts exceeded"
[12:42:48.717] Reconnecting network service... 
[12:42:48.727] Socket Error:  "Max. connection attempts exceeded"
[12:43:59.854] Unable to calculate available network fees: "Call timeout after 40 seconds"
[12:53:07.908] Reconnecting network service... 
[12:53:07.909] Socket Error:  "Max. connection attempts exceeded"
[12:53:07.952] Unable to calculate available network fees: "Call timeout after 40 seconds"
[13:03:50.536] Reconnecting network service... 
[13:03:50.538] Socket Error:  "Max. connection attempts exceeded"
[13:09:01.125] Reconnecting network service... 
[13:09:01.134] Socket Error:  "Max. connection attempts exceeded"
[13:09:17.889] Switch network XRPL Testnet [id-1][node-wss://s.altnet.rippletest.net:51233] 
[13:09:19.150] Connected to node wss://s.altnet.rippletest.net:51233 [n9LsLq1XmifBuUF5VcUgHuVoRuhMrhWE5XTNgMTtehzn97JywoD2] 
[13:09:19.172] Subscribed to 4 accounts ["r...","r...","r...","r..."]
[13:09:19.481] Fetch account info [r...]: "actNotFound"
[13:09:19.495] Fetch account info [r...]: "actNotFound"
[13:09:19.536] Fetch account info [r...]: "actNotFound"
[13:10:51.845] Socket closed 
[13:10:54.443] Connected to node wss://s.altnet.rippletest.net:51233 [n9LsLq1XmifBuUF5VcUgHuVoRuhMrhWE5XTNgMTtehzn97JywoD2] 
[13:10:54.462] Subscribed to 4 accounts ["r...","r...","r...","r..."]
[13:10:54.881] Fetch account info [r...]: "actNotFound"
[13:10:54.898] Fetch account info [r...]: "actNotFound"
[13:10:54.914] Fetch account info [r...]: "actNotFound"
[13:12:52.770] Socket closed 
[13:13:51.785] Reconnecting network service... 
[13:13:53.75] Connected to node wss://s.altnet.rippletest.net:51233 [n9LsLq1XmifBuUF5VcUgHuVoRuhMrhWE5XTNgMTtehzn97JywoD2] 
[13:13:53.87] Subscribed to 4 accounts ["r...","r...","r...","r..."]
[13:13:53.441] Fetch account info [r...]: "actNotFound"
[13:13:53.454] Fetch account info [r...]: "actNotFound"
[13:13:53.476] Fetch account info [r...]: "actNotFound"
N3TC4T commented 9 months ago

Thanks @desimmons, I will check it and will back to you.

WietseWind commented 9 months ago

Ah OK, so then it's a testnet, not a Xaman app issue.

Found the problem. It's being proxied through Cloudflare and the testnet machine doesn't have the Cloudflare IPs as trusted gateways. Meaning everyone is being rate limited as if they are one client ;) Fixing that now. Consider it fixed in a minute.

Thanks for reporting!

desimmons commented 9 months ago

@WietseWind annoyingly I'm still seeing this issue

WietseWind commented 9 months ago

@desimmons Can you try again?

desimmons commented 9 months ago

Just tested now. LGTM. Thanks! 🙏

WietseWind commented 9 months ago

Just tested now. LGTM. Thanks! 🙏

Wonderful, thanks for confirming! Lmk if at a later moment it doesn't.