pyWalletConnect icon indicating copy to clipboard operation
pyWalletConnect copied to clipboard

Trouble connecting to app.safe.global via pyWalletConnect

Open snarflakes opened this issue 1 year ago • 1 comments

Trouble connecting to uptodate pyWalletConnect to app.safe.global. Connecting fine to opensea (including NFT transaction signature) and snapshot, but with app.safe.global just hangs after attempting signature.

here is some log info

DEBUG:pywalletconnect.websocket:Ping received in WebSocket

DEBUG:pywalletconnect.client_v2irn:A JSON message in the queue : {"id":1736966057340092150,"jsonrpc":"2.0","result":true} DEBUG:pywalletconnect.client_v2irn:Result JSON response received : True DEBUG:pywalletconnect.client_v2irn:<-- WalletConnect response read : True DEBUG:pywalletconnect.client_v2irn:Approving the session proposal: {"jsonrpc":"2.0","id":1736966058591574766,"method":"wc_sessionSettle","params":{"relay":{"protocol":"irn"},"controller":{"publicKey":"97a3a917304fe264b81d53a37302c9e86ad7f1965a876b976703b1a9c65acb24","metadata":{"description":"pyWalletConnect v1.6.2 by BitLogiK","url":"https://github.com/bitlogik/pyWalletConnect","icons":["https://raw.githubusercontent.com/bitlogik/pyWalletConnect/master/logo.png"],"name":"pyWalletConnect"}},"namespaces":{"eip155":{"accounts":["eip155:137:0x827d3E01191dE9206ce85197D1e1f2b91Ed7251d"],"methods":["eth_sendTransaction","personal_sign","eth_signTransaction","eth_sign","eth_signTypedData","eth_signTypedData_v4","wallet_addEthereumChain","wallet_switchEthereumChain"],"events":["chainChanged","accountsChanged","message","disconnect","connect"]}},"expiry":1736980458}} DEBUG:pywalletconnect.client_v2irn:Sending a subscription request for 1d5ffdc784b56a1fafe0d6d4bbc066ff0c708688baad8c9fe85db49fa21f2950. DEBUG:pywalletconnect.client:WalletConnect message sending to relay : {"jsonrpc":"2.0","id":1736966058611204744,"method":"irn_subscribe","params":{"topic":"1d5ffdc784b56a1fafe0d6d4bbc066ff0c708688baad8c9fe85db49fa21f2950"}} DEBUG:pywalletconnect.client_v2irn:Waiting for Topic subcription ack. DEBUG:pywalletconnect.websocket:WebSocket Text message received : {"id":1736966058611204744,"jsonrpc":"2.0","result":"5ca1764468703e43733aa828f3e28f97f78c089b008c47806aa4d602f676b7c7"} DEBUG:pywalletconnect.client_v2irn:A JSON message in the queue : {"id":444663310227969,"jsonrpc":"2.0","method":"irn_subscription","params":{"id":"6b2d1f3f2e8eba0780636e4a2a5cc51151ac21396506fe5b8110f62090c76c93","data":{"topic":"102bda5b17c589c39402b7e70ed3a5329a371beb8f03c6b36bb0c4b0455750cf","me

DEBUG:pywalletconnect.client_v2irn:A JSON message in the queue : {"id":1736966058611204744,"jsonrpc":"2.0","result":"5ca1764468703e43733aa828f3e28f97f78c089b008c47806aa4d602f676b7c7"} DEBUG:pywalletconnect.client_v2irn:Result JSON response received : 5ca1764468703e43733aa828f3e28f97f78c089b008c47806aa4d602f676b7c7 DEBUG:pywalletconnect.client_v2irn:<-- WalletConnect response read : 5ca1764468703e43733aa828f3e28f97f78c089b008c47806aa4d602f676b7c7 DEBUG:pywalletconnect.client_v2irn:Sending a publish request for 1d5ffdc784b56a1fafe0d6d4bbc066ff0c708688baad8c9fe85db49fa21f2950. DEBUG:pywalletconnect.client:WalletConnect message sending to relay : {"jsonrpc":"2.0","id":1736966059454478812,"method":"irn_publish","params":{"topic":"1d5ffdc784b56a1fafe0d6d4bbc066ff0c708688baad8c9fe85db49fa21f2950","message":"AKccZ39xXLoD1rN4bwpxCzTZqZw65JvvAkfMl0jPKGLh79tCVNkUhW26ZbYto8/ILKFTtQI4iY4Y/LNRVyQe/YeCVSGiSNvlTt2VTPjj5h7r17sV9B0mPwvpU8c86tYuhtNOv+mKP9bJduFHzhVXLV5W4hRXnKiBJ6Tj9ihE90F+PoFNEaKKl3LseQqDN+xgs2cKtbsRUWDXc/l+BYXo6zf+B1hcURHQd1jtJA5mOwj846K3br3zuU+jpFny48yOT4DbyQyKQhzWkwcz6VjScpDOP3BKfBM9KV3qfho+LRmYqaY1B7FSaP0UGaBx8v9JVTJYXMSdL5sJIStHkvADVsJ58QAbgtFryvV5tUQrfwqYLDJmbB93n/XXGT6GGWGwuJHDUSsDkRawet75xrp4xZNQkNiL7iBkCrvmMDtZernGidjABv9065anjAlYGXeiaaPIux/qPD1E/1NhI5q1EEB3SxaOSrUB+FX99nplqTyNiYacOdv/bxKr/RpLBNv71qgAUsSi2EcqIE/InRVPrzVjLru6Ofr2GRh9COZ5E94nbrufYp7AySEq7PfMKlOnhIr/XpOAcH/nmpm9QKRX25LyxeCUQ29clxEedzDLxAMjHMRqjQLhmbD09TyLVet5cP247r9ZBLIWY7RYVzqyS/AkmVCskVzP5pca2BVEPr4CdIWQIFN7MilA/IK5fL/4kr+9Bo5GFXJt3vozXbyKOAGFWUCQ0WLLSe5STfQzggq6IjBm5YOUbbXhCOXb61gF84+WNUAq4/NOkiVb67jfYtlvgCw89cKLYZ152FKPKZnsqd1K6vQ27T+28g8MITSTMTzrhYGUtPb4IlkLTfOjJnGMcNc5negGgHrTcWTTAYNmzNibWYSfrlWhpMfoCp4YBL/LzimKW7510ubKlTcBiFF3hjUhfVAfFinNwV/T0CQpTY4S/O/LLWp1eEJxwTJ0oKw8mFb7fjmRy8nZqQe9f1E5a3y7uoktRs1NaEwy2CJFtQpfCyTNW2/RtHc4pTpBJkcfucR9HiGcWph6gHJzZzWYoM5RexGeiF+bYkmXXiESeMCRiwe3rvjNU3C7nOdQ153OMAYzdS8L8EcAmII0nA","ttl":300,"tag":1102}} DEBUG:pywalletconnect.client_v2irn:Waiting for sessionSettle post ack. DEBUG:pywalletconnect.client_v2irn:A JSON message in the queue : {"id":444663310227969,"jsonrpc":"2.0","method":"irn_subscription","params":{"id":"6b2d1f3f2e8eba0780636e4a2a5cc51151ac21396506fe5b8110f62090c76c93","data":{"topic":"102bda5b17c589c39402b7e70ed3a5329a371beb8f03c6b36bb0c4b0455750cf","message":"AKzOXhE1GALk0tPjZFBO1aH4PcjG2JYTXdAJAc9o5e8KCW3gtP/KZn6vh2Apw9lxrkl6aZyaew53SMPWsIZC8O06KS1sqNnzFs1mQgedXYQWI4QYzvJSDgFytXi8CCHlkbsX6xDZz1cmFo265pHpMhVcbkO7DZcTb9kY1WzbcE82M+ruYM75d1Z8FBBvIDK6l2ogxRYMYPS0fy4VuVR6YY44SNCe3C0R6l

{"id":444663311301378,"jsonrpc":"2.0","method":"irn_subscription","params":{"id":"5ca1764468703e43733aa828f3e28f97f78c089b008c47806aa4d602f676b7c7","data":{"topic":"1d5ffdc784b56a1fafe0d6d4bbc066ff0c708688baad8c9fe85db49fa21f2950","message":"AMvUUSYBITbm8UMpkOn+PW+sTbwS1P8S7fJRJ9ySwwo1RLMLpr2AUl0d+yWOjZ9XOI4ul79jJBfUHCzW3tanQgzz3QwSP+Dzh2cuzJh2s1s7xMuPMbdX4w==","publishedAt":1736966059679,"tag":1103}}} DEBUG:pywalletconnect.client_v2irn:A JSON message in the queue : {"id":1736966059454478812,"jsonrpc":"2.0","result":true} DEBUG:pywalletconnect.client_v2irn:Result JSON response received : True DEBUG:pywalletconnect.client_v2irn:<-- WalletConnect response read : True DEBUG:pywalletconnect.client_v2irn:Waiting for sessionSettle post ack. DEBUG:pywalletconnect.client_v2irn:A message pop from the queue : {"id":444663310227969,"jsonrpc":"2.0","method":"irn_subscription","params":{"id":"6b2d1f3f2e8eba0780636e4a2a5cc51151ac21396506fe5b8110f62090c76c93","data":{"topic":"102bda5b17c589c39402b7e70ed3a5329a371beb8f03c6b36bb0c4b0455750cf","message":"AKzOXhE1GALk0tPjZFBO1aH4PcjG2JYTXdAJAc9o5e8KCW3gtP/KZn6vh2Apw9lxrkl6aZyaew53SMPWsIZC8O06KS1sqNnzFs1mQgedXYQWI4QYzvJSDgFytXi8CCHlkbsX6xDZz1cmFo265pHpMhVcbkO7DZcTb9kY1WzbcE82M+ruYM75d1Z8FBBvIDK6l2ogxRYMYPS0fy4VuVR6YY44SNCe3C0R6lc

pbiI6Imh0dHBzOi8vYXBwLnNhZmUuZ2xvYmFsIiwiaXNTY2FtIjpmYWxzZSwiaXNWZXJpZmllZCI6dHJ1ZX0.1FFBqugZ7SlnKN5OsiSPqvXKyA8IAm4dIbiBO2j68cxST24rTxIXVU5qFsBqRaMjX60v25waARKj0rcG5c6ivQ","publishedAt":1736966036803,"tag":1100}}} DEBUG:pywalletconnect.websocket:WebSocket Text message received : {"id":444663311647491,"jsonrpc":"2.0","method":"irn_subscription","params":{"id":"5ca1764468703e43733aa828f3e28f97f78c089b008c47806aa4d602f676b7c7","data":{"topic":"1d5ffdc784b56a1fafe0d6d4bbc066ff0c708688baad8c9fe85db49fa21f2950","message":"AMvUUSYBITbm8UMpkOn+PW+sTbwS1P8S7fJRJ9ySwwo1RLMLpr2AUl0d+yWOjZ9XOI4ul79jJBfUHCzW3tanQgzz3QwSP+Dzh2cuzJh2s1s7xMuPMbdX4w==","publishedAt":1736966059679,"tag":1103}}} DEBUG:pywalletconnect.client_v2irn:A message pop from the queue : {"id":444663311301378,"jsonrpc":"2.0","method":"irn_subscription","params":{"id":"5ca1764468703e43733aa828f3e28f97f78c089b008c47806aa4d602f676b7c7","data":{"topic":"1d5ffdc784b56a1fafe0d6d4bbc066ff0c708688baad8c9fe85db49fa21f2950","message":"AMvUUSYBITbm8UMpkOn+PW+sTbwS1P8S7fJRJ9ySwwo1RLMLpr2AUl0d+yWOjZ9XOI4ul79jJBfUHCzW3tanQgzz3QwSP+Dzh2cuzJh2s1s7xMuPMbdX4w==","publishedAt":1736966059679,"tag":1103}}} DEBUG:pywalletconnect.client_v2irn:Request message decrypted from topic 1d5ffdc784b56a1fafe0d6d4bbc066ff0c708688baad8c9fe85db49fa21f2950 : {"id":"1736966058591574766n","jsonrpc":"2.0","result":true} DEBUG:pywalletconnect.client_v2irn:Sending result reply. DEBUG:pywalletconnect.client_v2irn:<-- WalletConnect response read : {"id":"1736966058591574766n","jsonrpc":"2.0","result":true} Connected. To quit : Hit CTRL+C, or disconnect from Dapp. Now waiting for dapp messages ... DEBUG:pywalletconnect.client_v2irn:A message pop from the queue : {"id":444663311647491,"jsonrpc":"2.0","method":"irn_subscription","params":{"id":"5ca1764468703e43733aa828f3e28f97f78c089b008c47806aa4d602f676b7c7","data":{"topic":"1d5ffdc784b56a1fafe0d6d4bbc066ff0c708688baad8c9fe85db49fa21f2950","message":"AMvUUSYBITbm8UMpkOn+PW+sTbwS1P8S7fJRJ9ySwwo1RLMLpr2AUl0d+yWOjZ9XOI4ul79jJBfUHCzW3tanQgzz3QwSP+Dzh2cuzJh2s1s7xMuPMbdX4w==","publishedAt":1736966059679,"tag":1103}}} DEBUG:pywalletconnect.client_v2irn:Request message decrypted from topic 1d5ffdc784b56a1fafe0d6d4bbc066ff0c708688baad8c9fe85db49fa21f2950 : {"id":"1736966058591574766n","jsonrpc":"2.0","result":true} DEBUG:pywalletconnect.client_v2irn:Sending result reply. DEBUG:pywalletconnect.client_v2irn:Request query decoded : {"id":"1736966058591574766n","jsonrpc":"2.0","result":true}

<---- Received WalletConnect wallet query : ('1736966058591574766n', None, None) 1736966058591574766n <class 'tuple'> <class 'str'> 1736966058591574766n v1 or v2 data report None <class 'NoneType'> None DEBUG:pywalletconnect.websocket:Ping received in WebSocket DEBUG:pywalletconnect.websocket:Pong reply sent DEBUG:pywalletconnect.websocket:Ping received in WebSocket DEBUG:pywalletconnect.websocket:Pong reply sent DEBUG:pywalletconnect.client_v2irn:A JSON message in the queue : {"id":1736966058611204744,"jsonrpc":"2.0","result":"5ca1764468703e43733aa828f3e28f97f78c089b008c47806aa4d602f676b7c7"} DEBUG:pywalletconnect.client_v2irn:Result JSON response received : 5ca1764468703e43733aa828f3e28f97f78c089b008c47806aa4d602f676b7c7 DEBUG:pywalletconnect.client_v2irn:<-- WalletConnect response read : 5ca1764468703e43733aa828f3e28f97f78c089b008c47806aa4d602f676b7c7 DEBUG:pywalletconnect.client_v2irn:Sending a publish request for 1d5ffdc784b56a1fafe0d6d4bbc066ff0c708688baad8c9fe85db49fa21f2950. DEBUG:pywalletconnect.client:WalletConnect message sending to relay : {"jsonrpc":"2.0","id":1736966059454478812,"method":"irn_publish","params":{"topic":"1d5ffdc784b56a1fafe0d6d4bbc066ff0c708688baad8c9fe85db49fa21f2950","message":"AKccZ39xXLoD1rN4bwpxCzTZqZw65JvvAkfMl0jPKGLh79tCVNkUhW26ZbYto8/ILKFTtQI4i

Running: Name: pyWalletConnect Version: 1.6.2 Summary: WalletConnect implementation for Python wallets Home-page: https://github.com/bitlogik/pyWalletConnect Author: BitLogiK Author-email: [email protected] License: GPLv3 Location: /home/pi/.local/lib/python3.7/site-packages Requires: cryptography, wsproto

snarflakes avatar Jan 15 '25 19:01 snarflakes

Thanks for the detailed report. I did some tests, and I confirm the issue. AppSafe wallet works with other popular web wallet using WC, but no luck with this library. So far with a quick look, I cant see what's the cause. I just saw that there's a irn_subscription, "tag":1100 message containing a large message, possibly not decoded / taken in account by pyWC. But it may be others things.

antonio-fr avatar Jan 15 '25 23:01 antonio-fr