xmtp / xmtp-flutter

XMTP client SDK for Flutter applications written in Dart.
MIT License
31 stars 6 forks source link

Bug: SocketException: Failed host lookup: 'production.xmtp.network' #61

Closed NTJ3 closed 1 year ago

NTJ3 commented 1 year ago

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 1 year ago

Sounds like this issue has resolved itself. Please reopen if thats not the case.