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

SOCKSSocket: _secureSocksSocket initialization failure #24

Open
sneurlax opened this issue Sep 29, 2023 · 1 comment
Open

SOCKSSocket: _secureSocksSocket initialization failure #24

sneurlax opened this issue Sep 29, 2023 · 1 comment

Comments

@sneurlax
Copy link
Member

flutter: Log: [Error][2023-09-28 23:20:20.414Z]: JsonRPC.connect(): failed to connect to bitcoincash.stackwallet.com over tor proxy at (host: InternetAddress('127.0.0.1', IPv4), port: 5146), Exception: socks_socket.connectTo(): Failed to connect to target through SOCKS5 proxy.
[ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: LateInitializationError: Field '_secureSocksSocket@76127678' has not been initialized.
#0      SOCKSSocket._secureSocksSocket (package:tor_ffi_plugin/socks_socket.dart)
#1      SOCKSSocket.write (package:tor_ffi_plugin/socks_socket.dart:268:7)
#2      JsonRPC._sendNextAvailableRequest.<anonymous closure> (package:stackwallet/electrumx_rpc/rpc.dart:88:25)
<asynchronous suspension>

Has happened twice now.

We attempt to return a _secureSocksSocket which has failed to initialize/connect.

@sneurlax
Copy link
Member Author

See https://github.com/cypherstack/tor/blob/main/lib/socks_socket.dart#L267-L271

write should essentially await connection or similar

sneurlax pushed a commit that referenced this issue Jun 13, 2024
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