Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

web-client: randomly halts and misinterprets disconnect leading to non-functional reconnect #3267

Open
Albermonte opened this issue Feb 4, 2025 · 0 comments

Comments

@Albermonte
Copy link
Member

Platform: iOS 18.2.1 (Nimiq Pay)
Nimiq version: @nimiq/core@2.0.6

After establishing consensus the web-client from time to time and without apparently following any pattern, disconnects from the network without firing any consensus change or peer change event.

If trying to reconnect to the network with this disconnect_network function nothing happens, it gets stuck forever in there.

This errors appeared in the console the moment it lost consensus:

[Error] 2025-02-04T14:55:35.983000000Z ERROR swarm                | Failed to send request to peer request_id=30 peer_id=12D3KooWFEQSeVr9kaQyzCH9n1iBeJc1bBNDHfPvjuLKu8PJm6qA error=Failed to dial the requested peer
[Error] 2025-02-04T14:55:35.983000000Z ERROR consensus_proxy      | There was an error requesting transaction receipts from peer peer=12D3KooWFEQSeVr9kaQyzCH9n1iBeJc1bBNDHfPvjuLKu8PJm6qA err=Outbound error: Dial attempt failed
[Debug] 2025-02-04T14:55:36.018000000Z DEBUG consensus_proxy      | Performing txn receipts by address request to peer peer_id=12D3KooWFEQSeVr9kaQyzCH9n1iBeJc1bBNDHfPvjuLKu8PJm6qA (index.js, line 1856)
[Error] 2025-02-04T14:55:36.019000000Z ERROR swarm                | Failed to send request to peer request_id=31 peer_id=12D3KooWFEQSeVr9kaQyzCH9n1iBeJc1bBNDHfPvjuLKu8PJm6qA error=Failed to dial the requested peer
[Error] 2025-02-04T14:55:36.019000000Z ERROR consensus_proxy      | There was an error requesting transaction receipts from peer peer=12D3KooWFEQSeVr9kaQyzCH9n1iBeJc1bBNDHfPvjuLKu8PJm6qA err=Outbound error: Dial attempt failed
[Debug] 2025-02-04T14:55:36.020000000Z DEBUG consensus_proxy      | Performing txn receipts by address request to peer peer_id=12D3KooWFEQSeVr9kaQyzCH9n1iBeJc1bBNDHfPvjuLKu8PJm6qA (index.js, line 1856)
[Error] 2025-02-04T14:55:36.020000000Z ERROR swarm                | Failed to send request to peer request_id=32 peer_id=12D3KooWFEQSeVr9kaQyzCH9n1iBeJc1bBNDHfPvjuLKu8PJm6qA error=Failed to dial the requested peer
[Error] 2025-02-04T14:55:36.020000000Z ERROR consensus_proxy      | There was an error requesting transaction receipts from peer peer=12D3KooWFEQSeVr9kaQyzCH9n1iBeJc1bBNDHfPvjuLKu8PJm6qA err=Outbound error: Dial attempt failed
[Debug] 2025-02-04T14:55:36.021000000Z DEBUG consensus_proxy      | Performing txn receipts by address request to peer peer_id=12D3KooWFEQSeVr9kaQyzCH9n1iBeJc1bBNDHfPvjuLKu8PJm6qA (index.js, line 1856)
[Error] 2025-02-04T14:55:36.021000000Z ERROR swarm                | Failed to send request to peer request_id=33 peer_id=12D3KooWFEQSeVr9kaQyzCH9n1iBeJc1bBNDHfPvjuLKu8PJm6qA error=Failed to dial the requested peer
[Error] 2025-02-04T14:55:36.021000000Z ERROR consensus_proxy      | There was an error requesting transaction receipts from peer peer=12D3KooWFEQSeVr9kaQyzCH9n1iBeJc1bBNDHfPvjuLKu8PJm6qA err=Outbound error: Dial attempt failed
[Debug] 2025-02-04T14:55:36.022000000Z DEBUG consensus_proxy      | Performing txn receipts by address request to peer peer_id=12D3KooWFEQSeVr9kaQyzCH9n1iBeJc1bBNDHfPvjuLKu8PJm6qA (index.js, line 1856)
[Error] 2025-02-04T14:55:36.023000000Z ERROR swarm                | Failed to send request to peer request_id=34 peer_id=12D3KooWFEQSeVr9kaQyzCH9n1iBeJc1bBNDHfPvjuLKu8PJm6qA error=Failed to dial the requested peer
[Error] 2025-02-04T14:55:36.023000000Z ERROR consensus_proxy      | There was an error requesting transaction receipts from peer peer=12D3KooWFEQSeVr9kaQyzCH9n1iBeJc1bBNDHfPvjuLKu8PJm6qA err=Outbound error: Dial attempt failed
[Debug] 2025-02-04T14:55:36.023000000Z DEBUG consensus_proxy      | Performing txn receipts by address request to peer peer_id=12D3KooWFEQSeVr9kaQyzCH9n1iBeJc1bBNDHfPvjuLKu8PJm6qA (index.js, line 1856)
[Error] 2025-02-04T14:55:36.024000000Z ERROR swarm                | Failed to send request to peer request_id=35 peer_id=12D3KooWFEQSeVr9kaQyzCH9n1iBeJc1bBNDHfPvjuLKu8PJm6qA error=Failed to dial the requested peer
[Error] 2025-02-04T14:55:36.024000000Z ERROR consensus_proxy      | There was an error requesting transaction receipts from peer peer=12D3KooWFEQSeVr9kaQyzCH9n1iBeJc1bBNDHfPvjuLKu8PJm6qA err=Outbound error: Dial attempt failed
[Debug] 2025-02-04T14:55:36.024000000Z DEBUG consensus_proxy      | Performing txn receipts by address request to peer peer_id=12D3KooWFEQSeVr9kaQyzCH9n1iBeJc1bBNDHfPvjuLKu8PJm6qA (index.js, line 1856)
[Error] 2025-02-04T14:55:36.025000000Z ERROR swarm                | Failed to send request to peer request_id=36 peer_id=12D3KooWFEQSeVr9kaQyzCH9n1iBeJc1bBNDHfPvjuLKu8PJm6qA error=Failed to dial the requested peer
[Error] 2025-02-04T14:55:36.025000000Z ERROR consensus_proxy      | There was an error requesting transaction receipts from peer peer=12D3KooWFEQSeVr9kaQyzCH9n1iBeJc1bBNDHfPvjuLKu8PJm6qA err=Outbound error: Dial attempt failed
[Debug] 2025-02-04T14:55:36.025000000Z DEBUG consensus_proxy      | Performing txn receipts by address request to peer peer_id=12D3KooWFEQSeVr9kaQyzCH9n1iBeJc1bBNDHfPvjuLKu8PJm6qA (index.js, line 1856)
[Error] 2025-02-04T14:55:36.026000000Z ERROR swarm                | Failed to send request to peer request_id=37 peer_id=12D3KooWFEQSeVr9kaQyzCH9n1iBeJc1bBNDHfPvjuLKu8PJm6qA error=Failed to dial the requested peer
[Error] 2025-02-04T14:55:36.026000000Z ERROR consensus_proxy      | There was an error requesting transaction receipts from peer peer=12D3KooWFEQSeVr9kaQyzCH9n1iBeJc1bBNDHfPvjuLKu8PJm6qA err=Outbound error: Dial attempt failed
[Debug] 2025-02-04T14:55:36.027000000Z DEBUG consensus_proxy      | Performing txn receipts by address request to peer peer_id=12D3KooWFEQSeVr9kaQyzCH9n1iBeJc1bBNDHfPvjuLKu8PJm6qA (index.js, line 1856)
[Error] 2025-02-04T14:55:36.028000000Z ERROR swarm                | Failed to send request to peer request_id=38 peer_id=12D3KooWFEQSeVr9kaQyzCH9n1iBeJc1bBNDHfPvjuLKu8PJm6qA error=Failed to dial the requested peer
[Error] 2025-02-04T14:55:36.028000000Z ERROR consensus_proxy      | There was an error requesting transaction receipts from peer peer=12D3KooWFEQSeVr9kaQyzCH9n1iBeJc1bBNDHfPvjuLKu8PJm6qA err=Outbound error: Dial attempt failed
[Debug] 2025-02-04T14:55:36.029000000Z DEBUG consensus_proxy      | Performing txn receipts by address request to peer peer_id=12D3KooWFEQSeVr9kaQyzCH9n1iBeJc1bBNDHfPvjuLKu8PJm6qA (index.js, line 1856)
[Error] 2025-02-04T14:55:36.029000000Z ERROR swarm                | Failed to send request to peer request_id=39 peer_id=12D3KooWFEQSeVr9kaQyzCH9n1iBeJc1bBNDHfPvjuLKu8PJm6qA error=Failed to dial the requested peer
[Error] 2025-02-04T14:55:36.030000000Z ERROR consensus_proxy      | There was an error requesting transaction receipts from peer peer=12D3KooWFEQSeVr9kaQyzCH9n1iBeJc1bBNDHfPvjuLKu8PJm6qA err=Outbound error: Dial attempt failed
[Debug] 2025-02-04T14:55:36.031000000Z DEBUG consensus_proxy      | Performing txn receipts by address request to peer peer_id=12D3KooWFEQSeVr9kaQyzCH9n1iBeJc1bBNDHfPvjuLKu8PJm6qA (index.js, line 1856)
[Error] 2025-02-04T14:55:36.031000000Z ERROR swarm                | Failed to send request to peer request_id=40 peer_id=12D3KooWFEQSeVr9kaQyzCH9n1iBeJc1bBNDHfPvjuLKu8PJm6qA error=Failed to dial the requested peer
[Error] 2025-02-04T14:55:36.031000000Z ERROR consensus_proxy      | There was an error requesting transaction receipts from peer peer=12D3KooWFEQSeVr9kaQyzCH9n1iBeJc1bBNDHfPvjuLKu8PJm6qA err=Outbound error: Dial attempt failed
[Debug] 2025-02-04T14:55:36.031000000Z DEBUG consensus_proxy      | Performing txn receipts by address request to peer peer_id=12D3KooWFEQSeVr9kaQyzCH9n1iBeJc1bBNDHfPvjuLKu8PJm6qA (index.js, line 1856)
[Error] 2025-02-04T14:55:36.031000000Z ERROR swarm                | Failed to send request to peer request_id=41 peer_id=12D3KooWFEQSeVr9kaQyzCH9n1iBeJc1bBNDHfPvjuLKu8PJm6qA error=Failed to dial the requested peer
[Error] 2025-02-04T14:55:36.032000000Z ERROR consensus_proxy      | There was an error requesting transaction receipts from peer peer=12D3KooWFEQSeVr9kaQyzCH9n1iBeJc1bBNDHfPvjuLKu8PJm6qA err=Outbound error: Dial attempt failed
[Debug] 2025-02-04T14:55:36.032000000Z DEBUG consensus_proxy      | Performing txn receipts by address request to peer peer_id=12D3KooWFEQSeVr9kaQyzCH9n1iBeJc1bBNDHfPvjuLKu8PJm6qA (index.js, line 1856)
[Error] 2025-02-04T14:55:36.032000000Z ERROR swarm                | Failed to send request to peer request_id=42 peer_id=12D3KooWFEQSeVr9kaQyzCH9n1iBeJc1bBNDHfPvjuLKu8PJm6qA error=Failed to dial the requested peer
[Error] 2025-02-04T14:55:36.032000000Z ERROR consensus_proxy      | There was an error requesting transaction receipts from peer peer=12D3KooWFEQSeVr9kaQyzCH9n1iBeJc1bBNDHfPvjuLKu8PJm6qA err=Outbound error: Dial attempt failed
[Debug] 2025-02-04T14:55:36.033000000Z DEBUG behaviour            | Failed to dial peer peer_id=12D3KooWFEQSeVr9kaQyzCH9n1iBeJc1bBNDHfPvjuLKu8PJm6qA error="Dial error" (index.js, line 1856)
[Error] 2025-02-04T14:55:36.033000000Z ERROR consensus_proxy      | The request couldn't be fulfilled err=We could not find any peer that satisfies the desired services

Full logs (mixed with some Nimiq Pay logs about consensus and peer count):
nimiq-pay-consensus-lost.log

PS: I haven't been able to reproduce it on Android because it is very difficult to detect as it is so random, but it does occur on Android, although less frequently.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant