Closed vincentneo closed 1 year ago
And yes, I do have IPv6 access even in watchOS simulator.
(Sensitive information censored out)
Thank you for the report. I pushed a fix. Could you check that IPv6 works now on watchOS?
Unfortunately no. 😞 I also tried to ping from my Mac to 2001:b28:f23f:f005::a
and got unknown host
2023-06-11 18:32:01.746541+0800 Pigeon[16612:1013630] PDTask <0C424364-4358-46A0-9E1C-7EDC00BFAA66>.<65> finished with error [-1004] Error Domain=NSURLErrorDomain Code=-1004 "Could not connect to the server." UserInfo={_kCFStreamErrorCodeKey=65, _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataPDTask <0C424364-4358-46A0-9E1C-7EDC00BFAA66>.<65>, _NSURLErrorRelatedURLSessionTaskErrorKey=(
"LocalDataPDTask <0C424364-4358-46A0-9E1C-7EDC00BFAA66>.<65>",
"LocalDataTask <0C424364-4358-46A0-9E1C-7EDC00BFAA66>.<65>"
), NSLocalizedDescription=Could not connect to the server., _kCFStreamErrorDomainKey=1, NSErrorFailingURLStringKey=http://2001:b28:f23f:f005::a:80/api, NSErrorFailingURLKey=http://2001:b28:f23f:f005::a:80/api}
2023-06-11 18:32:01.746955+0800 Pigeon[16612:1013630] Task <0C424364-4358-46A0-9E1C-7EDC00BFAA66>.<65> finished with error [-1004] Error Domain=NSURLErrorDomain Code=-1004 "Could not connect to the server." UserInfo={_kCFStreamErrorCodeKey=65, _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <0C424364-4358-46A0-9E1C-7EDC00BFAA66>.<65>, _NSURLErrorRelatedURLSessionTaskErrorKey=(
"LocalDataTask <0C424364-4358-46A0-9E1C-7EDC00BFAA66>.<65>",
"LocalDataPDTask <0C424364-4358-46A0-9E1C-7EDC00BFAA66>.<65>",
"LocalDataTask <0C424364-4358-46A0-9E1C-7EDC00BFAA66>.<65>"
), NSLocalizedDescription=Could not connect to the server., _kCFStreamErrorDomainKey=1, NSErrorFailingURLStringKey=http://2001:b28:f23f:f005::a:80/api, NSErrorFailingURLKey=http://2001:b28:f23f:f005::a:80/api}
2023-06-11 18:32:01.750296+0800 Pigeon[16612:1012079] PDTask <EDA1DE05-8E90-4F29-ABED-81A6C3D1D415>.<66> finished with error [-1004] Error Domain=NSURLErrorDomain Code=-1004 "Could not connect to the server." UserInfo={_kCFStreamErrorCodeKey=65, _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataPDTask <EDA1DE05-8E90-4F29-ABED-81A6C3D1D415>.<66>, _NSURLErrorRelatedURLSessionTaskErrorKey=(
"LocalDataPDTask <EDA1DE05-8E90-4F29-ABED-81A6C3D1D415>.<66>",
"LocalDataTask <EDA1DE05-8E90-4F29-ABED-81A6C3D1D415>.<66>"
), NSLocalizedDescription=Could not connect to the server., _kCFStreamErrorDomainKey=1, NSErrorFailingURLStringKey=http://2001:b28:f23f:f005::a:5222/api, NSErrorFailingURLKey=http://2001:b28:f23f:f005::a:5222/api}
2023-06-11 18:32:01.750695+0800 Pigeon[16612:1012079] Task <EDA1DE05-8E90-4F29-ABED-81A6C3D1D415>.<66> finished with error [-1004] Error Domain=NSURLErrorDomain Code=-1004 "Could not connect to the server." UserInfo={_kCFStreamErrorCodeKey=65, _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <EDA1DE05-8E90-4F29-ABED-81A6C3D1D415>.<66>, _NSURLErrorRelatedURLSessionTaskErrorKey=(
"LocalDataTask <EDA1DE05-8E90-4F29-ABED-81A6C3D1D415>.<66>",
"LocalDataPDTask <EDA1DE05-8E90-4F29-ABED-81A6C3D1D415>.<66>",
"LocalDataTask <EDA1DE05-8E90-4F29-ABED-81A6C3D1D415>.<66>"
), NSLocalizedDescription=Could not connect to the server., _kCFStreamErrorDomainKey=1, NSErrorFailingURLStringKey=http://2001:b28:f23f:f005::a:5222/api, NSErrorFailingURLKey=http://2001:b28:f23f:f005::a:5222/api}
2023-06-11 18:32:01.754190+0800 Pigeon[16612:1013630] PDTask <499648D4-27D2-4C13-8B9D-06B222EB4F17>.<67> finished with error [-1004] Error Domain=NSURLErrorDomain Code=-1004 "Could not connect to the server." UserInfo={_kCFStreamErrorCodeKey=65, _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataPDTask <499648D4-27D2-4C13-8B9D-06B222EB4F17>.<67>, _NSURLErrorRelatedURLSessionTaskErrorKey=(
"LocalDataPDTask <499648D4-27D2-4C13-8B9D-06B222EB4F17>.<67>",
"LocalDataTask <499648D4-27D2-4C13-8B9D-06B222EB4F17>.<67>"
), NSLocalizedDescription=Could not connect to the server., _kCFStreamErrorDomainKey=1, NSErrorFailingURLStringKey=http://2001:b28:f23f:f005::a:443/api, NSErrorFailingURLKey=http://2001:b28:f23f:f005::a:443/api}
This looks like a log from an old TDLib version. Did you rebuild the latest TDLib 66234ae2537a99ec0eaf7b0857245a6e5c2d2bc9 from Github and used it for testing?
Ah, apologies, I didn't notice there's a new commit, assumed it's server-side. Will rebuild and retest, sorry about that.
Now with https://github.com/tdlib/td/commit/66234ae2537a99ec0eaf7b0857245a6e5c2d2bc9
I am getting:
2023-06-12 00:18:51.554960+0800 Pigeon[40303:1723839] PDTask <074E03FC-58FF-4840-AA4C-4063CEB6C3F2>.<3> finished with error [-1001] Error Domain=NSURLErrorDomain Code=-1001 "The request timed out." UserInfo={_kCFStreamErrorCodeKey=-2102, _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataPDTask <074E03FC-58FF-4840-AA4C-4063CEB6C3F2>.<3>, _NSURLErrorRelatedURLSessionTaskErrorKey=(
"LocalDataPDTask <074E03FC-58FF-4840-AA4C-4063CEB6C3F2>.<3>",
"LocalDataTask <074E03FC-58FF-4840-AA4C-4063CEB6C3F2>.<3>"
), NSLocalizedDescription=The request timed out., _kCFStreamErrorDomainKey=4, NSErrorFailingURLStringKey=http://[2001:b28:f23d:f001::a]:5222/api, NSErrorFailingURLKey=http://[2001:b28:f23d:f001::a]:5222/api}
2023-06-12 00:18:51.555300+0800 Pigeon[40303:1723839] Task <074E03FC-58FF-4840-AA4C-4063CEB6C3F2>.<3> finished with error [-1001] Error Domain=NSURLErrorDomain Code=-1001 "The request timed out." UserInfo={_kCFStreamErrorCodeKey=-2102, _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <074E03FC-58FF-4840-AA4C-4063CEB6C3F2>.<3>, _NSURLErrorRelatedURLSessionTaskErrorKey=(
"LocalDataTask <074E03FC-58FF-4840-AA4C-4063CEB6C3F2>.<3>",
"LocalDataPDTask <074E03FC-58FF-4840-AA4C-4063CEB6C3F2>.<3>",
"LocalDataTask <074E03FC-58FF-4840-AA4C-4063CEB6C3F2>.<3>"
), NSLocalizedDescription=The request timed out., _kCFStreamErrorDomainKey=4, NSErrorFailingURLStringKey=http://[2001:b28:f23d:f001::a]:5222/api, NSErrorFailingURLKey=http://[2001:b28:f23d:f001::a]:5222/api}
Which I think can be assumed as a #2488 issue, since it's a timeout thing, just like in #2488.
When
prefer_ipv6
option is set totrue
, connection fails. Tested on watchOS, TDLib is compiled with current master branch commit.