shaz-tech / flutter_internet_speed_test

Internet speed test plugin to integrate it in your app wherever you want.
MIT License
12 stars 45 forks source link

OnError callback not getting triggered when testing speed while connected to VPN on iOS. #13

Open prashantprem opened 10 months ago

prashantprem commented 10 months ago

While using this plugin in VPN app and testing it on iOS device often a time an error of request time out error occurs but the onError callback is not triggered because of which i'm not able to notify user or update the state.

Here is the error log:

Task <8BC923DE-5094-4B3C-8502-D64C443BCF26>.<1> finished with error [-1001] Error Domain=NSURLErrorDomain Code=-1001 "The request timed out." UserInfo={_kCFStreamErrorCodeKey=-2103, _NSURLErrorFailingURLSessionTaskErrorKey=LocalUploadTask <8BC923DE-5094-4B3C-8502-D64C443BCF26>.<1>, _NSURLErrorRelatedURLSessionTaskErrorKey=(
), NSLocalizedDescription=The request timed out., NSErrorFailingURLStringKey=https://speedtest.apyhi.com/upload, NSErrorFailingURLKey=https://speedtest.apyhi.com/upload, _kCFStreamErrorDomainKey=4}
Error is The operation couldn’t be completed. (flutter_internet_speed_test.NetworkError error 0.)
flutter: │ 🐛 arguments are {type: 1, speedTestError: The operation couldn’t be completed. (flutter_internet_speed_test.NetworkError error 0.), id: 1}
flutter: │ 🐛 onError : The operation couldn’t be completed. (flutter_internet_speed_test.NetworkError error 0.)
flutter: │ 🐛 onError : null