Urlsessiontask failed with error перевод

Errors Here’s a list of all the error codes you may experience with further documentation about why this happens and what to do about it. Setup and Connectivity​ «Invalid Client ID or Redirect URI» and «OS Error while looking up redirect_uri»​ Check your home-assistant.log file for any errors about indieauth . If it also […]

Содержание

  1. Errors
  2. Setup and Connectivity​
  3. «Invalid Client ID or Redirect URI» and «OS Error while looking up redirect_uri»​
  4. «Invalid Client ID or Redirect URI» and «Timeout while while looking up redirect_uri»​
  5. SSL error while looking up redirect_uri https://home-assistant.io/iOS​
  6. «Setup failed for dependencies: zeroconf «​
  7. Response status code was unacceptable: 400​
  8. URLSessionTask failed with error​
  9. Push-уведомление FCM через AlamoFire — сбой URLSessionTask с ошибкой: не удалось подключиться к серверу
  10. Remove URLSessionTask failed with error from failure error #2037
  11. Comments
  12. Footer
  13. iOS App runs in timeout during app setup; AlamoFire #1918
  14. Comments
  15. Footer
  16. URLSession downloadTask поведение при работе в фоновом режиме?

Errors

Here’s a list of all the error codes you may experience with further documentation about why this happens and what to do about it.

Setup and Connectivity​

«Invalid Client ID or Redirect URI» and «OS Error while looking up redirect_uri»​

Check your home-assistant.log file for any errors about indieauth . If it also mentions a OS Error, you most likely have a broken IPv6 implementation. You can confirm this by running curl -v6 https://home-assistant.io/iOS/beta-auth from the machine you run Home Assistant on. If you receive a error about not being able to connect to the server, your IPv6 stack is broken and you should disable it.

«Invalid Client ID or Redirect URI» and «Timeout while while looking up redirect_uri»​

Check your home-assistant.log file for any errors about indieauth . If it also mentions a Timeout, you may have a problem with your DNS not behaving as expected. You can confirm this by running dig home-assistant.io and nslookup home-assistant.io from the machine you run Home Assistant on. If you see any errors there could be a dns problem.

Fixing this varies depending on your setup — but it’s worth trying the google dns servers 8.8.8.8 and 1.1.1.1 . If you are running a hassOS setup you can do this with ha dns options —servers dns://8.8.8.8 —servers dns://1.1.1.1 .

SSL error while looking up redirect_uri https://home-assistant.io/iOS​

This error means that your Home Assistant can’t negotiate the encrypted connection to https://home-assistant.io. This issue has been seen on installations running on top of MacOS where the installer notice about certificates was skipped and ignored. From the Python 3.7.5 ReadMe:

Certificate verification and OpenSSL This package includes its own private copy of OpenSSL 1.1.1. The trust certificates in system and user keychains managed by the Keychain Access application and the security command line utility are not used as defaults by the Python ssl module. A sample command script is included in /Applications/Python 3.7 to install a curated bundle of default root certificates from the third-party certifi package (https://pypi.org/project/certifi/). Double-click on Install Certificates to run it. The bundled pip has its own default certificate store for verifying download connections.

«Setup failed for dependencies: zeroconf «​

This error is usually caused by one of the two following issues:

  • You are running two Home Assistant instances with identical names. The solution is to rename one of them.
  • You are missing default_config: from your configuration.yaml file. It is possible to only add zeroconf: to configuration.yaml but adding default_config: will add several useful integrations along with zeroconf: .

Response status code was unacceptable: 400​

This occurs when the data sent during set up does not meet Home Assistant’s expectations. This most commonly occurs in two circumstances:

  • When you are running a version of Home Assistant older than the minimum requirement (currently 0.104.0)
  • You have unexpected characters in your device’s name. While setting up the Mobile App integration, we attempt to remove non-standard characters and emoji (as of Home Assistant 0.112). However, it is worth simplifying your device name to remove such characters if you are getting this error.

URLSessionTask failed with error​

This error is usually caused by one of the two following issues:

Источник

Push-уведомление FCM через AlamoFire — сбой URLSessionTask с ошибкой: не удалось подключиться к серверу

Я пытаюсь реализовать FCM для отправки push-уведомления (используя устаревший API), но не могу этого сделать.

Я проверил, что мой ключ сервера (взятый из консоли Firebase) и токен устройства точны, и я успешно отправил push-уведомление на свое устройство через Postman.

Однако я не могу сделать это с помощью кода. Я вызываю приведенный ниже код из своего симулятора и «пытаюсь» отправить push-заметку на мое физическое устройство.

Это мой первый раз, когда я внедряю FCM, и я застрял на нем некоторое время, поэтому любая помощь приветствуется. Спасибо

Почему вы хотите запустить FCM в приложении iOS?

вы должны получить токен FCM и токен обновления, как сказано в консоли firebase в файле Appdelegate:

вы не должны отправлять push из приложения iOS, это небезопасно из-за ключа сервера и т. д., а также вы должны добавить сертификат облачного сообщения и ключ сообщения по запросу firebase. а также у вас должен быть токен назначения fcm (на устройство). Отправитель push-уведомлений должен быть вашим бэкэндом, у которого есть все токены FCM устройства.

вы должны отправить токен FCM, который вы получаете в Appdelegate для [«user», «device»] на серверную часть, и ваш сервер должен сохранить его для пользовательского устройства.

Токен FCM — это ключ карты для каждого токена APNS устройства.

Спасибо за ответ Мазиар. Я уже получаю обновленный токен FCM в делегате приложения; в коде, который я разместил, токен введен вручную для простоты. Я попробовал оба способа и убедился, что токен обновлен и верен, но он по-прежнему регистрирует те же ошибки. Я также сделал все остальные вещи, которые вы упомянули (за исключением фактической отправки push-уведомления из бэкэнда). Push-уведомление корректно отправляется как тестовое сообщение из консоли Firebase, а также из Postman.

Как вы думаете, это потому, что я пытаюсь отправить push-уведомление с моего симулятора на физическое устройство? Я знаю, что симуляторы не могут получать push-уведомления, но могут ли они хотя бы отправить их на физическое устройство? Это то, что я делаю здесь. Мой симулятор отправляет push-уведомление на предоставленный токен устройства (который является токеном моего физического устройства, зарегистрированного для push-уведомлений).

Кроме того, вы упоминаете, что вам не следует отправлять push-уведомления из приложения iOS из-за того, что ключ сервера не является безопасным. Означает ли это, что я должен активировать свой бэкэнд, чтобы активировать FCM, чтобы активировать APN только для отправки push-уведомления? Не будет ли это слишком лишним.

@Eric [мой push-токен физического устройства] — это то же устройство, на котором вы находитесь, когда вы отправляете push на другое устройство, у вас должен быть токен назначения, как получить токен назначения? когда вы можете отправить push-уведомление от клиента, каждый может отправить его, поэтому я могу отправить push-уведомление вашим клиентам (даже с почтальоном), FCM — это промежуточное ПО для унификации отправки push-уведомления на обеих платформах (Android и ios, веб) и ваш бэкэнд не хочет реализовывать как push API, так и должен просто реализовывать FCM. это не лишнее.

@Eric, например, если я отправляю запрос на серверную часть, серверная часть знает, какой пользователь (пользователи) должен получить push-уведомление, а клиент не знает о других пользовательских токенах, даже у пользователя может быть несколько устройств, и все устройства должны получить толчок.

Токен push предназначен для моего физического устройства, на которое я отправляю уведомление. Я получаю push-токен из своей серверной базы данных перед отправкой уведомления. Я запускаю приведенный выше код в своем симуляторе, чтобы отправить push-уведомление на мое физическое устройство.

Источник

Remove URLSessionTask failed with error from failure error #2037

Moya version 14.0

While calling an api using Moya without any internet connect gives a failure response with error’s localizedResponse

Is there any way to remove the URLSessionTask failed message and just keep the localizesd string?

The text was updated successfully, but these errors were encountered:

What do you call «the localized string» ?
As far as I know this error message is not from Moya but from Alamofire or URLError, and is already supposed to be a localized string as its the one returned by error.localizedDescription

What do you call «the localized string» ? — can be any custom string. Suppose in my app I don’t want to be use the default localizedDescription for no offline internet connection. Rather want something custom, like «Please check your internet connection» or anything.

I have not used alomafire in a while. But I guess alomafire doesn’t show URLSessionTask failed with error: string.

What I want to say is user may not want to see URLSessionTask failed with error: as a localizedDescription. Simply The internet connection appears to be offline will be more user friendly.

Imo when the error comes from a third party SDK, localizedDescription is not meant to be directly displayed to users, but rather as an easy way for devs to debug from the console.

If you want to show an alert to users you’ll have to provide an app specific message.

© 2023 GitHub, Inc.

You can’t perform that action at this time.

You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.

Источник

iOS App runs in timeout during app setup; AlamoFire #1918

First setup of a fresh installed App version.

When selecting the server entry from auto-discovery I am asked for credentials. Which are accepted. The connection then runs into a timeout — error code: alamofire.AFError 13

When I do the same but enter the server address manually it works like a charm. Only reproducible with the server entry from auto-discovery.

Versions:
** core-2021.11.3
** supervisor-2021.10.8
** Home Assistant OS 6.6 on RPI
iPad mini 6 with OS version 15.1

The text was updated successfully, but these errors were encountered:

Does the IP address shown in the discovery list match the one you are entering manually?

Yes, that is the strange part. It discovers the correct IP:port.

Same problem here. tried a lot of things to no avail, and noticed that an unofficial iOS app works fine (though this alternative app sucks), so I think this may be a bug in the current iOS

Please share the exact error message you are receiving.

Having a similar issue. Auto discover doesn’t work and I get the following error when trying to connect.

Same Problem. 15.0.2 IOS Version.
With an android phone everything works fine.

Same issue on iOS 15.1.1, Discovers docker container on Synology, click on discovered server, shows login and password prompts, enter credentials and hit «Login». Login window disappears and sits with spinning thing for a minute or more, then message URLSessionTask failed with error: The request timed out. Error Code: Alamofire.AFError 13
Server is accessible via browser just fine and works as expected.

Anyone got this fixed? Running into the same issue. Up to date iOS iPhone 13 Pro
Also works for me if I enter the address manually.

Question. I just did a rebuild of my network with new WAPs, Switch’s, and a Firewalla Gold firewall. I have my network segmented into 4 VLANs; LAN, Main, IoT, and Guest.

My server is a Dell PowerEdge R620 with 4 Intel NICs teamed together running VMWare ESXi 7.0.3.

The only way I could figure out how to get Home Assistant to see the other VLANs was to add additional port groups on the virtual switch in VMWare with each of the VLANs represented. I then went into the VMWare VMs settings for HA and added 4 total NICs. Each one specifying a different VLAN. Each connection has its own IP address associated with that VLAN. So I have a total of 4 ip addresses listed under HostName and zip AddressesI’m also trying to setup DuckDNS with LetsEncrypt and AdGuard as a local DNS server to do local DNS Rewrites.

I can logon to HA by specific IP addresses but not via domain name. Also, anytime I try and use the IOS companion app it doesn’t see the server automatically, and if I specify the address, I get the cannot connection error 500 message.

Anyone have any idea what’s going on here or does anyone have a good way of setting home Assistant up with a segmented VLAN network so that it can gather data from all VLANs?

Has anyone solved this issue? Works great on my Android phone. I even had it working on my iphone. But after deleting the app and reinstalling it, I’m no longer able to connect the iphone app. I’m getting the following error: URLSessionTask failed with error: A server with the specified hostname could not be found. Error Code: Alamofire.AFError 13

I was able to solve the error by first connecting internally via the IP (without https) and then in the APP setting → Server → External URL I removed the check mark for Home Assistant Cloud.

Even after a reinstallation, the check mark seemed to be still set

© 2023 GitHub, Inc.

You can’t perform that action at this time.

You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.

Источник

URLSession downloadTask поведение при работе в фоновом режиме?

У меня есть приложение, которое должно загрузить файл, который может быть довольно большим (возможно, размером до 20 МБ). Я читал на странице загрузки URLSession и как они работают, когда приложение переходит на задний план или заканчивается iOS. Я бы хотел, чтобы загрузка продолжалась и из того, что я читал, это возможно. Я нашел в блоге здесь, рассматривающий эту тему более подробно.

Основываясь на том, что я прочитал, я сначала создал класс диспетчера загрузки, который выглядит так:

Я также добавляю этот метод в свой AppDelegate:

Наконец, я запускаю тестовую загрузку следующим образом:

Когда я запускаю этот код и запускаю загрузку, я вижу, как вызываются методы делегата, но я также вижу сообщение, в котором говорится:

Я думаю, что это происходит из-за следующего вызова в приложении: handleEventsForBackgroundURLSession: completeHandler:

Геттер для свойства сеанса в моем классе DownloadManager (который я взял непосредственно из сообщения в блоге, приведенном ранее) всегда пытается создать новый URLSession, используя конфигурацию фона. Насколько я понимаю, если мое приложение было прекращено, тогда это было бы подходящим поведением для “повторного подключения” к исходному URL-адресу. Но так как приложение не прекращается, а просто переходит на задний план, когда вызов приложения: handleEventsForBackgroundURLSession: completionHandler: бывает, я должен ссылаться на существующий экземпляр URLSession. По крайней мере, я думаю, что проблема. Может ли кто-нибудь прояснить это поведение для меня? Благодарю!

Ваша проблема в том, что вы создаете новый сеанс каждый раз, когда вы ссылаетесь на переменную сеанса:

Вместо этого сохраните сессию как переменную экземпляра и просто получите ее:

Когда я это делаю на игровой площадке, это показывает, что повторные вызовы дают один и тот же сеанс, и нет ошибки:

Сеанс не живет в процессе, он является частью ОС. Вы увеличиваете количество ссылок каждый раз, когда вы получаете доступ к своей переменной сеанса, как указано, что вызывает ошибку.

Источник

Я пытаюсь реализовать FCM для отправки push-уведомления (используя устаревший API), но не могу этого сделать.

Я проверил, что мой ключ сервера (взятый из консоли Firebase) и токен устройства точны, и я успешно отправил push-уведомление на свое устройство через Postman.

Однако я не могу сделать это с помощью кода. Я вызываю приведенный ниже код из своего симулятора и «пытаюсь» отправить push-заметку на мое физическое устройство.

let urlString: String = "https://fcm/googleapis.com/fcm/send"
let key = "key=[my server key]"

let headers: HTTPHeaders = [
    "Content-Type": "application/json",
    "Authorization": key
]

let notificationParameters: Parameters = [
    "to": "[my push token of physical device]",
    "notification": [
        "title": "My title",
        "body": "My body"
    ]
]

print("1")
AF.request(urlString, method: .post, parameters: 
notificationParameters, encoding: JSONEncoding.default, headers: 
headers).responseJSON { response in
    print("3")
    switch response.result {
    case .success:
        printSuccess("Successfully sent notification")
    case .failure(let error):
        print("Failed to send notification: (error)")
        print(error.errorDescription)
        print(error.failureReason)
    }
    print("4")
}
print("2")

Вот журнал:

1
2
2022-03-31 15:23:24.725607-0500 Wurtle with Friends[22207:12775410] 
[connection] nw_socket_handle_socket_event [C3.1:3] Socket SO_ERROR 
[61: Connection refused]
2022-03-31 15:23:24.727572-0500 Wurtle with Friends[22207:12775410] 
Connection 3: received failure notification
2022-03-31 15:23:24.727789-0500 Wurtle with Friends[22207:12775410] 
Connection 3: failed to connect 1:61, reason -1
2022-03-31 15:23:24.728130-0500 Wurtle with Friends[22207:12775410] 
Connection 3: encountered error(1:61)
2022-03-31 15:23:24.729779-0500 Wurtle with Friends[22207:12775409] 
[boringssl] boringssl_metrics_log_metric_block_invoke(153) Failed 
to log metrics
2022-03-31 15:23:24.731134-0500 Wurtle with Friends[22207:12775410] 
Task <B52206D8-E22D-4D8F-B3F5-815692558860>.<1> HTTP load failed, 
0/0 bytes (error code: -1004 [1:61])
2022-03-31 15:23:24.736922-0500 Wurtle with Friends[22207:12775410] 
Task <B52206D8-E22D-4D8F-B3F5-815692558860>.<1> finished with error 
[-1004] Error Domain=NSURLErrorDomain Code=-1004 "Could not connect 
to the server." UserInfo = {_kCFStreamErrorCodeKey=61, 
NSUnderlyingError=0x60000279c300 {Error 
Domain=kCFErrorDomainCFNetwork Code=-1004 "(null)" UserInfo=
{_NSURLErrorNWPathKey=satisfied (Path is satisfied), interface: 
en1, _kCFStreamErrorCodeKey=61, _kCFStreamErrorDomainKey=1}}, 
_NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <B52206D8-
E22D-4D8F-B3F5-815692558860>.<1>, 
_NSURLErrorRelatedURLSessionTaskErrorKey=(
    "LocalDataTask <B52206D8-E22D-4D8F-B3F5-815692558860>.<1>"
), NSLocalizedDescription=Could not connect to the server., 
NSErrorFailingURLStringKey=https://fcm/googleapis.com/fcm/send, 
NSErrorFailingURLKey=https://fcm/googleapis.com/fcm/send, 
_kCFStreamErrorDomainKey=1}
3
Failed to send notification: sessionTaskFailed(error: Error 
Domain=NSURLErrorDomain Code=-1004 "Could not connect to the 
server." UserInfo = {_kCFStreamErrorCodeKey=61, 
NSUnderlyingError=0x60000279c300 {Error 
Domain=kCFErrorDomainCFNetwork Code=-1004 "(null)" UserInfo=
{_NSURLErrorNWPathKey=satisfied (Path is satisfied), interface: 
en1, _kCFStreamErrorCodeKey=61, _kCFStreamErrorDomainKey=1}}, 
_NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <B52206D8-
E22D-4D8F-B3F5-815692558860>.<1>, 
_NSURLErrorRelatedURLSessionTaskErrorKey=(
    "LocalDataTask <B52206D8-E22D-4D8F-B3F5-815692558860>.<1>"
), NSLocalizedDescription=Could not connect to the server., 
NSErrorFailingURLStringKey=https://fcm/googleapis.com/fcm/send, 
NSErrorFailingURLKey=https://fcm/googleapis.com/fcm/send, 
_kCFStreamErrorDomainKey=1})
Optional("URLSessionTask failed with error: Could not connect to 
the server.")
4

Это мой первый раз, когда я внедряю FCM, и я застрял на нем некоторое время, поэтому любая помощь приветствуется. Спасибо

urlsessiontask failed with error: a server with the specified hostname could not be found

You’re now watching this thread and will receive emails when there’s activity. Click again to stop watching or visit your profile/homepage to manage your watched threads.

You’ve stopped watching this thread and will no longer receive emails when there’s activity. Click again to start watching.

I have a problem like the title here, but it only occurs in some mobile phones and some networks. It seems that it has little to do with the code level. How to solve it. When it is clear, some iOS 15 will appear, and iOS 13 does not have this problem.

Replies

You tagged wwdc2022-10079 on your post, does this mean that you are using the new DNSSEC APIs with URLSession, for example requiresDNSSECValidation?
If so, can you please add a sample of the code that you are using? If not then random HTTP errors without code changes usually result from the client talking to a downstream server that the client did not expect to, so I would consult with your server side team on these errors if they persist.

Xcode 12.2, Alamofire 5.4.0, Swift 5


У меня есть этот фрагмент кода для запроса данных из бэкэнда, который отлично работает в счастливом потоке. Но если по какой-то причине серверная часть недоступна, я вижу автоматическое ведение журнала, которое я хочу скрыть или отключить. Потому что меня беспокоит, когда я анализирую журнал отладки.

let request = AF.request("http://192.168.1.5:44444/api/users", headers: headers)
        request.responseJSON { (data) in
    
            switch data.result {
                case .success:
                    print("Request Succes!")
                case .failure(let errorData):
                    print("Request Failed")
                    print("(errorData.errorDescription ?? "")")
            }
        }

Вывод ошибки:

Task <xxxxxxxx>.<1> HTTP load failed, 0/0 bytes (error code: -1004 [1:61])
Task <xxxxxxxx>.<1> finished with error [-1004] Error Domain=NSURLErrorDomain Code=-1004 "Could not connect to the server." UserInfo={_kCFStreamErrorCodeKey=61, NSUnderlyingError=0x600000d82250 {Error Domain=kCFErrorDomainCFNetwork Code=-1004 "(null)" UserInfo={_kCFStreamErrorCodeKey=61, _kCFStreamErrorDomainKey=1}}, _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <xxxxxxxxx>.<1>, _NSURLErrorRelatedURLSessionTaskErrorKey=(
    "LocalDataTask <xxxxxxxxx>.<1>"
), NSLocalizedDescription=Could not connect to the server., NSErrorFailingURLStringKey=http://192.168.1.5:44444/developer, NSErrorFailingURLKey=http://192.168.1.5:44444/developer, _kCFStreamErrorDomainKey=1}
Request Failed
URLSessionTask failed with error: Could not connect to the server.

Я хочу избавиться от следующих вещей, которые не созданы мной:

Task <xxxxxxxx>.<1> HTTP load failed, 0/0 bytes (error code: -1004 [1:61])
Task <xxxxxxxx>.<1> finished with error [-1004] Error Domain=NSURLErrorDomain Code=-1004 "Could not connect to the server." UserInfo={_kCFStreamErrorCodeKey=61, NSUnderlyingError=0x600000d82250 {Error Domain=kCFErrorDomainCFNetwork Code=-1004 "(null)" UserInfo={_kCFStreamErrorCodeKey=61, _kCFStreamErrorDomainKey=1}}, _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <xxxxxxxxx>.<1>, _NSURLErrorRelatedURLSessionTaskErrorKey=(
    "LocalDataTask <xxxxxxxxx>.<1>"
), NSLocalizedDescription=Could not connect to the server., NSErrorFailingURLStringKey=http://192.168.1.5:44444/developer, NSErrorFailingURLKey=http://192.168.1.5:44444/developer, _kCFStreamErrorDomainKey=1}

И увидеть только:

Request Failed
URLSessionTask failed with error: Could not connect to the server.

2 ответа

Лучший ответ

Это системные журналы, создаваемые ОС, а не Alamofire. Хотя вы можете заставить их замолчать, отключив подсистему os, я не рекомендую это делать, поскольку это отключает все os_log в вашем приложении и другие функции модуля os, такие как указатели. Запрос функции в Apple с помощью Feedback Assistant может в конечном итоге убедить их разрешить нам фильтровать их в Xcode.


4

Jon Shier
20 Ноя 2020 в 23:50

У меня была точно такая же проблема, я хочу только записи отладки, созданные мной, а не те, которые были созданы системой. Я решил это, используя префикс для всех моих собственных записей журнала. Например, «[синхронизация] Синхронизация с сервера…» или «[синхронизация] Не удалось подключиться к серверу».

Теперь вы можете установить фильтр в XCode (в нижней части панели журнала) на префикс «[sync]», и вы увидите только свои собственные записи. Это работает даже во время работы приложения, и журналы поступают!


0

G. Marc
19 Фев 2022 в 11:38

I am having trouble connecting to my server. Whenever I login with the correct info this URLSessionTask error pops up. I don’t think It has to do with my code but it might. I have a sign in page that works perfectly and I tested my login php file and it works perfectly. I don’t think its because of misplacement of files either. Does anyone have any suggestions?

 @IBAction func loginTapped(_ sender: Any) {
     
        // If no text entered
        if usernameTextfield.text!.isEmpty || passwordTextField.text!.isEmpty {
            
            //send message if fields are not filled
            print("User name (String(describing: usernameTextfield)) or password (String(describing: passwordTextField)) is empty")
            self.errorLabel.alpha = 1
            return
        } else {
            
            //Shortcuts
            let username = usernameTextfield.text
            let password = passwordTextField.text
            
            //send request to sql db
            let url = "http://346.0.0.3/myApp/login.php"
        
            let parameters: Parameters=[
             "username":usernameTextfield.text!,
             "password":passwordTextField.text!
            ]
            
            AF.request(url, method: .post, parameters: parameters as Parameters, encoding:
            URLEncoding.default).response { (response) in

                    switch response.result {
                         case .success:
                         //sign in
                         let tabBarController =
                         self.storyboard?.instantiateViewController(identifier: Constants.Storyboard.TabBarController) as? UITabBarController
                         self.view.window?.rootViewController = tabBarController
                         self.view.window?.makeKeyAndVisible()

                         case .failure(let error):
                         // Couldn't sign in
                            self.errorLabel.text = error.localizedDescription
                         self.errorLabel.alpha = 1
                    }
                  }

Понравилась статья? Поделить с друзьями:
  • Urlopen http error 403 forbidden
  • Urlopen error winerror 10060
  • Urlopen error tunnel connection failed
  • Urlopen error timed out
  • Urlopen error errno 3 temporary failure in name resolution