Bug: SocketException: Failed host lookup: 'production.xmtp.network'
Closed this issue · 1 comments
NTJ3 commented
Describe the bug
Unhandled Exception: gRPC Error (code: 14, codeName: UNAVAILABLE, message: Error connecting: SocketException: Failed host lookup: 'production.xmtp.network' (OS Error: No address associated with hostname, errno = 7), details: null, rawResponse: null, trailers: {})
Expected behavior
No response
Steps to reproduce the bug
void _createWallet() async {
var wallet = EthPrivateKey.createRandom(Random.secure());
var api = xmtp.Api.create(
host: 'dev.xmtp.network',
isSecure: true,
debugLogRequests: true,
port: 5555);
var client =
await xmtp.Client.createFromWallet(api, await wallet.asSigner());
clientSingleton.setClient(client);
print('client address ${client.address.toString()}');
setState(() {
_walletAddress = client.address.hex;
sendFirstMessage = false;
});
// Write value
await storage.write(
key: 'CLIENT', value: jsonEncode(client.keys.writeToBuffer().toList()));
}
No response
nplasterer commented
Sounds like this issue has resolved itself. Please reopen if thats not the case.