Post

Replies

Boosts

Views

Activity

The network connection was lost kCFStreamErrorDomainKey and kCFStreamErrorCodeKey
Hi All, we are experiencing the following network error: NSLocalizedDescription = "Connection error making token request to 'https://foobar.com': The network connection was lost.."; NSUnderlyingError = "Error Domain=NSURLErrorDomain Code=-1005 \"The network connection was lost.\" UserInfo={_kCFStreamErrorCodeKey=53, NSUnderlyingError=0x281b571b0 {Error Domain=kCFErrorDomainCFNetwork Code=-1005 \"(null)\" UserInfo={_kCFStreamErrorCodeKey=53, _kCFStreamErrorDomainKey=1}}, _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <48900801-EEF7-493A-AE53-48E443D03461>.<3>, _NSURLErrorRelatedURLSessionTaskErrorKey=(\n \"LocalDataTask <48900801-EEF7-493A-AE53-48E443D03461>.<3>\"\n), NSLocalizedDescription=The network connection was lost., NSErrorFailingURLStringKey=https://foobar.com, NSErrorFailingURLKey=https://foobar.com, _kCFStreamErrorDomainKey=1}"; }) I have studied a similar post What is kCFStreamErrorCodeKey=-4 (kCFStreamErrorDomainKey=4). Do the above error constants - for example _kCFStreamErrorCodeKey and _kCFStreamErrorDomainKey - add anything meaningful beyond “network connection was lost”? Moreover “network connection” refers to this url https connection specifically, or the network connection of the customer device? Thanks & Best Wishes.
3
1
5.2k
Oct ’22
Xcode Accounts BitBucket Server Account Validation Failed
Hi All, trying to add a new account in Xcode fails with above error message in red on the “Sign in to your BitBucket Server account” dialog: "Account Validation Failed" BitBucket Server 7.6. Xcode 12.5 macOS 11.3.1 Please note the following: The Personal Access Token works as I use it to clone repositories on Terminal. Xcode accounts work otherwise as I can add a GitHub account. BitBucket Server is good as I can add an account to SourceTree, albeit using SSH rather than Https. We have checked the BitBucket Server logs and nothing shows. Console logs for process - see text attachment - com.apple.dt.BitbucketServerHostBuiltInExtension show a connection error: finished with error [-1003] Error Domain=NSURLErrorDomain Code=-1003 UserInfo={_kCFStreamErrorCodeKey=8, NSUnderlyingError=0x7fe874e223c0 {Error Domain=kCFErrorDomainCFNetwork Code=-1003 UserInfo={_kCFStreamErrorCodeKey=8, _kCFStreamErrorDomainKey=12} -1003 is an error code for CFURLConnection and CFURLProtocol which indicates: kCFURLErrorCannotFindHost. That is surprising given the host is reachable via other apps on my local machine. Any ideas? Thanks & Best Wishes com.apple.dt.BitbucketServerHostBuiltInExtension - https://developer.apple.com/forums/content/attachment/0f83e1cc-c7d3-44a5-9215-2ca0e650a04c
1
0
1.2k
May ’21
Polling With Combine’s dataTaskPublisher
Hi All, having extensively searched Combine articles related to dataTaskPublisher, I’m still unsure how to approach this. For example: Processing URL Session Data Task Results with Combine - https://developer.apple.com/documentation/foundation/urlsession/processing_url_session_data_task_results_with_combine. I would like to periodically call a URL, e.g. every minute. That is to refresh with the latest data. Options that spring to mind are: Use Timer.TimerPublisher - https://developer.apple.com/documentation/foundation/timer/timerpublisher to create the dataTaskPublisher every minute. Use Timer.TimerPublisher - https://developer.apple.com/documentation/foundation/timer/timerpublisher and dataTaskPublisher - https://developer.apple.com/documentation/foundation/urlsession/datataskpublisher with Publishers.CombineLatest - https://developer.apple.com/documentation/combine/publishers/combinelatest. What would be the most elegant solution that is in accordance with - and makes full use of - the Combine framework? Many thanks!
1
0
1.9k
Dec ’20