Closed luvishq closed 1 week ago
Hey @luvishq 👋 ,
It's interesting that the SDK connects on Android and not iOS, I don't think we have any specific logic that might affect this. This kind of error usually appears when the iOS app can't connect to the internet - maybe a permission or simulator issue?
Can you run some kind of internet ping from the same app using the http client and let me know if that works as well? If it runs, I will try some things on my end but this is difficult to reproduce IMO.
Thanks.
Hey @luvishq I'm closing this issue for now but feel free to reopen this if this reoccurs and you have additional info that would help us replicate the issue. Thanks!
Which packages are you using?
stream_chat_flutter
On what platforms did you experience the issue?
iOS
What version are you using?
7.2.1
What happened?
It's giving an issue while connecting to the stream_chat client , here's the crash I am seeing in logs:
[ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: SocketException: Failed host lookup: 'chat.stream-io-api.com' (OS Error: nodename nor servname provided, or not known, errno = 8)
0 _NativeSocket.startConnect (dart:io-patch/socket_patch.dart:721:35)
1 _RawSocket.startConnect (dart:io-patch/socket_patch.dart:1914:26)
2 RawSocket.startConnect (dart:io-patch/socket_patch.dart:27:23)
3 RawSecureSocket.startConnect (dart:io/secure_socket.dart:299:22)
4 SecureSocket.startConnect (dart:io/secure_socket.dart:77:28)
5 _ConnectionTarget.connect (dart:_http/http_impl.dart:2480:26)
6 _HttpClient._getConnection.connect (dart:_http/http_impl.dart:2923:12)
7 _HttpClient._getConnection (dart:_http/http_impl.dart:2928:12)
8 _HttpClient._openUrl (dart:_http/http_impl.dart:2783:12)
9 _HttpClient.openUrl (dart:_http/http_impl.dart:2620:7)
Steps to reproduce
Supporting info to reproduce
No response
Relevant log output
Flutter analyze output
Flutter doctor output
Code of Conduct