iOS app failed to connect, Shared.WebhookError 3

Suddenly my iOS Home Assistant App cannot connect to my server anymore. Anyone has the same issue?
My server:
Home Assistant OS 9.2
|Supervisor Version|supervisor-2022.10.0|
|Docker Version|20.10.17|

The iOS app:

  • cannot find local server, i must add server manually.
  • ios app redirected to the login page to verify user.
  • verify username and password successfully, the app go back to its interface
  • app checking something, then fail notification. Shared.WebhookError 3
    I’ve included screen shot and log below.
-- ** ** ** --
2022-10-17 15:05:40.735 [Info] > Home Assistant Version: 2022.10 Build: 2022.398 PID: 15712
2022-10-17 15:05:40.735 [Info] > XCGLogger Version: 7.0.1 - Level: Debug
2022-10-17 15:05:40.737 [Info] > XCGLogger appending log to: file:///private/var/mobile/Containers/Shared/AppGroup/E217D48x-0B74-4025-8CDC-B975ACA7870A/logs/Home%20Assistant.txt
2022-10-17 15:05:40.743 [Info] [webhookmanager-data] [WebhookManager.swift:763] init(identifier:delegate:delegateQueue:background:) > webhook-io.robbie.HomeAssistant initial tasks: []
2022-10-17 15:05:40.744 [Info] [webhookmanager-data] [WebhookManager.swift:763] init(identifier:delegate:delegateQueue:background:) > non-background initial tasks: []
2022-10-17 15:05:40.746 [Info] [main] [ServerManager.swift:375] migrateIfNeeded() > no historic server found to import
2022-10-17 15:05:40.767 [Info] [main] [NotificationManagerLocalPushInterfaceExtension.swift:79] updateManagers() > 
2022-10-17 15:05:40.797 [Verbose] [main] [NotificationManager.swift:57] setupFirebase() > Calling UIApplication.shared.registerForRemoteNotifications()
2022-10-17 15:05:41.361 [Info] [main] [ClientEventStore.swift:8] ClientEventStore > unknown: Application Starting [:]
2022-10-17 15:05:41.372 [Info] [main] [ZoneManager.swift:87] log(state:) > initialize
2022-10-17 15:05:41.374 [Info] [main] [ZoneManager.swift:64] updateLocationManager(isInitial:) > started monitoring siglog changes
2022-10-17 15:05:41.375 [Info] [com.apple.root.user-initiated-qos] [RealmScene.swift:71] willDelete(objects:server:realm:) > deleting actions []
2022-10-17 15:05:41.383 [Info] [main] [ZoneManager.swift:191] sync(zones:) > available 0, enabled true, monitoring 0 ((beacon: 0, circular: 0, zone: 0)), started 0, ended 0
2022-10-17 15:05:41.411 [Info] [main] [WebViewWindowController.swift:75] setup() > showing onboarding required(HomeAssistant.OnboardingNavigationViewController.OnboardingStyle.RequiredType.full)
2022-10-17 15:05:41.554 [Verbose] [main] [AppDelegate.swift:487] setupWatchCommunicator() > Activation state changed: activated
2022-10-17 15:05:41.554 [Warning] [main] [WatchHelpers.swift:46] SyncWatchContext() > Tried to sync HAAPI config to watch but watch not paired or app not installed
2022-10-17 15:05:41.554 [Verbose] [main] [AppDelegate.swift:497] setupWatchCommunicator() > Reachability changed: notReachable
2022-10-17 15:05:41.560 [Verbose] [main] [NotificationManagerLocalPushInterfaceExtension.swift:142] configure(managers:) > computed managers: [:]
2022-10-17 15:05:41.561 [Verbose] [main] [NotificationManager.swift:70] didRegisterForRemoteNotifications(deviceToken:) > Successfully registered for push notifications! APNS token: dbdaaf1664c836a0cb357befe4fb07884794f98c5041f8d7409ea7c2440a67c0
2022-10-17 15:05:41.574 [Info] [main] [PeriodicUpdateManager.swift:57] connectAPI(reason:) > Connect finished for reason cold
2022-10-17 15:05:41.585 [Info] [main] [NotificationManager.swift:323] messaging(_:didReceiveRegistrationToken:) > Firebase registration token refreshed, new token: fTLSyw2Ak0jFjl33Hfga3h:APA91bEaMm2PR2lULikpe6IWyLcpgEFgjfM6V0eDAYCWYPIwUsWH3MiWAFNjhaQEsHXHhc3oj1v4TCtBeAHlvNDR14jqfUsZEeLgPwd8vjXTijj9aqD5VvCxYLKtnphlY2wfhEK7Dcfx
2022-10-17 15:05:41.970 [Error] [main] [AppDelegate.swift:434] checkForAlerts() > check error: The first or last element was requested for an empty sequence
2022-10-17 15:05:48.339 [Info] [main] [Bonjour.swift:25] start() > 
2022-10-17 15:06:01.280 [Info] [main] [Bonjour.swift:34] stop() > 
2022-10-17 15:06:26.069 [Verbose] [main] [OnboardingManualURLViewController.swift:153] connectTapped(_:) > Connect button tapped
2022-10-17 15:06:26.082 [Info] [main] [OnboardingAuth.swift:80] performPreSteps(checkPoint:authDetails:sender:) > beforeAuth
2022-10-17 15:06:26.082 [Verbose] [main] [OnboardingAuthStepConnectivity.swift:25] perform(point:) > 
2022-10-17 15:06:26.814 [Info] [main] [OnboardingAuth.swift:70] perform(checkPoint:checks:) > OnboardingAuthStepConnectivity: fulfilled()
2022-10-17 15:06:26.814 [Verbose] [main] [OnboardingAuthLogin.swift:21] open(authDetails:sender:) > https://xxxxxx.duckdns.org/auth/authorize?response_type=code&client_id=https://home-assistant.io/iOS&redirect_uri=homeassistant://auth-callback
2022-10-17 15:06:37.862 [Info] [main] [OnboardingAuth.swift:154] configuredAPI(authDetails:instance:code:) > 
2022-10-17 15:06:38.113 [Verbose] [main] [OnboardingAuth.swift:162] configuredAPI(authDetails:instance:code:) > 
2022-10-17 15:06:38.123 [Info] [main] [OnboardingAuth.swift:95] performPostSteps(checkPoint:api:sender:) > beforeRegister
2022-10-17 15:06:38.129 [Info] [main] [Environment.swift:71] init() > WebSocket: connecting using HAConnectionInfo(url: https://xxxxxx.duckdns.org, userAgent: Optional("Home Assistant/2022.10 (io.robbie.HomeAssistant; build:2022.398; iOS 15.7.0)"), engine: nil, evaluateCertificate: Optional((Function)))
2022-10-17 15:06:38.305 [Info] [main] [Environment.swift:71] init() > WebSocket: Viability changed: true
2022-10-17 15:06:38.403 [Info] [main] [Environment.swift:71] init() > WebSocket: connected with headers: ["Upgrade": "websocket", "Date": "Mon, 17 Oct 2022 08:06:38 GMT", "Sec-WebSocket-Accept": "eNINzA2JcisoDtUx67RDZDDmxEU=", "Connection": "upgrade", "Server": "Python/3.8 aiohttp/3.7.4.post0", "Sec-WebSocket-Extensions": "permessage-deflate", "Content-Type": "application/octet-stream"]
2022-10-17 15:06:38.406 [Info] [main] [Environment.swift:71] init() > WebSocket: phase transition to auth
2022-10-17 15:06:38.409 [Info] [hakit-work-queue] [Environment.swift:71] init() > WebSocket: Received: auth: required
2022-10-17 15:06:38.410 [Info] [hakit-work-queue] [Environment.swift:71] init() > WebSocket: Sending: (auth)
2022-10-17 15:06:38.450 [Info] [hakit-work-queue] [Environment.swift:71] init() > WebSocket: Received: auth: ok(version: "2021.5.5")
2022-10-17 15:06:38.450 [Info] [main] [Environment.swift:71] init() > WebSocket: phase transition to command(version: "2021.5.5")
2022-10-17 15:06:38.452 [Info] [hakit-work-queue] [Environment.swift:71] init() > WebSocket: Sending: {"id":1,"type":"config\/device_registry\/list"}
2022-10-17 15:06:38.452 [Info] [hakit-work-queue] [Environment.swift:71] init() > WebSocket: Sending: {"event_type":"component_loaded","id":2,"type":"subscribe_events"}
2022-10-17 15:06:38.452 [Info] [hakit-work-queue] [Environment.swift:71] init() > WebSocket: Sending: {"event_type":"core_config_updated","id":3,"type":"subscribe_events"}
2022-10-17 15:06:38.509 [Info] [hakit-work-queue] [Environment.swift:71] init() > WebSocket: Received: result success HARequestIdentifier(rawValue: 1)
2022-10-17 15:06:38.514 [Info] [main] [OnboardingAuth.swift:70] perform(checkPoint:checks:) > OnboardingAuthStepDuplicate: fulfilled()
2022-10-17 15:06:38.514 [Info] [main] [OnboardingAuth.swift:95] performPostSteps(checkPoint:api:sender:) > register
2022-10-17 15:06:38.553 [Info] [hakit-work-queue] [Environment.swift:71] init() > WebSocket: Received: result success HARequestIdentifier(rawValue: 2)
2022-10-17 15:06:38.553 [Info] [hakit-work-queue] [Environment.swift:71] init() > WebSocket: Received: result success HARequestIdentifier(rawValue: 3)
2022-10-17 15:06:38.856 [Verbose] [main] [HAAPI.swift:370] register() > Registration response Shared.MobileAppRegistrationResponse
2022-10-17 15:06:38.856 [Info] [main] [OnboardingAuth.swift:70] perform(checkPoint:checks:) > OnboardingAuthStepRegister: fulfilled()
2022-10-17 15:06:38.857 [Info] [main] [OnboardingAuth.swift:95] performPostSteps(checkPoint:api:sender:) > afterRegister
2022-10-17 15:06:38.918 [Info] [main] [WebhookManager.swift:223] sendEphemeral(server:request:) > sending to 1D9AACCx-B9DB-4853-93C1-85FC59F17765: WebhookRequest(type: "get_config", data: [:], localMetadata: nil)
2022-10-17 15:06:38.968 [Verbose] [main] [HAAPI.swift:756] registerSensors() > Registering sensors [Optional("battery_level"), Optional("battery_state"), Optional("storage"), Optional("connectivity_ssid"), Optional("connectivity_bssid"), Optional("connectivity_connection_type"), Optional("connectivity_sim_1"), Optional("geocoded_location"), Optional("last_update_trigger")]
2022-10-17 15:06:38.981 [Verbose] [com.apple.root.user-initiated-qos] [ModelManager.swift:316] store(type:from:sourceModels:) > updating NotificationCategory server(1D9AACCx-B9DB-4853-93C1-85FC59F17765) from(0) eligible(0) deleted(0) ignored(0) new(0)
2022-10-17 15:06:38.984 [Verbose] [com.apple.root.user-initiated-qos] [ModelManager.swift:316] store(type:from:sourceModels:) > updating Action server(1D9AACCx-B9DB-4853-93C1-85FC59F17765) from(0) eligible(0) deleted(0) ignored(0) new(0)
2022-10-17 15:06:38.986 [Info] [main] [OnboardingAuth.swift:70] perform(checkPoint:checks:) > OnboardingAuthStepModels: fulfilled()
2022-10-17 15:06:38.988 [Info] [webhookmanager-data] [WebhookManager.swift:402] send(on:server:identifier:request:waitForResponse:) > starting request: taskKey(session: webhook-io.robbie.HomeAssistant, task: 1), server(1D9AACCx-B9DB-4853-93C1-85FC59F17765), type(WebhookResponseUnhandled), request(WebhookRequest(type: "register_sensor", data: ["device_class": "battery", "state": 99, "unique_id": "battery_level", "name": "Battery Level", "unit_of_measurement": "%", "attributes": [:], "type": "sensor", "icon": "mdi:battery-90"], localMetadata: nil))
2022-10-17 15:06:39.006 [Info] [webhookmanager-data] [WebhookManager.swift:402] send(on:server:identifier:request:waitForResponse:) > starting request: taskKey(session: webhook-io.robbie.HomeAssistant, task: 2), server(1D9AACCx-B9DB-4853-93C1-85FC59F17765), type(WebhookResponseUnhandled), request(WebhookRequest(type: "register_sensor", data: ["state": "Not Charging", "unique_id": "battery_state", "type": "sensor", "attributes": ["Low Power Mode": false], "name": "Battery State", "icon": "mdi:battery-90"], localMetadata: nil))
2022-10-17 15:06:39.012 [Info] [webhookmanager-data] [WebhookManager.swift:402] send(on:server:identifier:request:waitForResponse:) > starting request: taskKey(session: webhook-io.robbie.HomeAssistant, task: 3), server(1D9AACCx-B9DB-4853-93C1-85FC59F17765), type(WebhookResponseUnhandled), request(WebhookRequest(type: "register_sensor", data: ["unique_id": "storage", "unit_of_measurement": "% available", "icon": "mdi:database", "type": "sensor", "attributes": ["Total": "127,98 GB", "Available (Opportunistic)": "63,38 GB", "Available": "62,39 GB", "Available (Important)": "68,96 GB"], "state": "49.52", "name": "Storage"], localMetadata: nil))
2022-10-17 15:06:39.018 [Info] [webhookmanager-data] [WebhookManager.swift:402] send(on:server:identifier:request:waitForResponse:) > starting request: taskKey(session: webhook-io.robbie.HomeAssistant, task: 4), server(1D9AACCx-B9DB-4853-93C1-85FC59F17765), type(WebhookResponseUnhandled), request(WebhookRequest(type: "register_sensor", data: ["type": "sensor", "state": "Not Connected", "name": "SSID", "unique_id": "connectivity_ssid", "icon": "mdi:wifi-off"], localMetadata: nil))
2022-10-17 15:06:39.023 [Info] [webhookmanager-data] [WebhookManager.swift:402] send(on:server:identifier:request:waitForResponse:) > starting request: taskKey(session: webhook-io.robbie.HomeAssistant, task: 5), server(1D9AACCx-B9DB-4853-93C1-85FC59F17765), type(WebhookResponseUnhandled), request(WebhookRequest(type: "register_sensor", data: ["state": "Not Connected", "name": "BSSID", "type": "sensor", "unique_id": "connectivity_bssid", "icon": "mdi:wifi-off"], localMetadata: nil))
2022-10-17 15:06:39.028 [Info] [webhookmanager-data] [WebhookManager.swift:402] send(on:server:identifier:request:waitForResponse:) > starting request: taskKey(session: webhook-io.robbie.HomeAssistant, task: 6), server(1D9AACCx-B9DB-4853-93C1-85FC59F17765), type(WebhookResponseUnhandled), request(WebhookRequest(type: "register_sensor", data: ["attributes": ["Cellular Technology": "4G"], "icon": "mdi:signal", "type": "sensor", "unique_id": "connectivity_connection_type", "name": "Connection Type", "state": "Cellular"], localMetadata: nil))
2022-10-17 15:06:39.032 [Info] [webhookmanager-data] [WebhookManager.swift:402] send(on:server:identifier:request:waitForResponse:) > starting request: taskKey(session: webhook-io.robbie.HomeAssistant, task: 7), server(1D9AACCx-B9DB-4853-93C1-85FC59F17765), type(WebhookResponseUnhandled), request(WebhookRequest(type: "register_sensor", data: ["attributes": ["Current Radio Technology": "Long-Term Evolution (LTE)", "Carrier ID": "0000000100000001", "Carrier Name": "Viettel", "ISO Country Code": "vn", "Mobile Country Code": "452", "Mobile Network Code": "04", "Allows VoIP": true], "icon": "mdi:sim", "type": "sensor", "unique_id": "connectivity_sim_1", "state": "Viettel", "name": "SIM 1"], localMetadata: nil))
2022-10-17 15:06:39.037 [Info] [webhookmanager-data] [WebhookManager.swift:402] send(on:server:identifier:request:waitForResponse:) > starting request: taskKey(session: webhook-io.robbie.HomeAssistant, task: 8), server(1D9AACCx-B9DB-4853-93C1-85FC59F17765), type(WebhookResponseUnhandled), request(WebhookRequest(type: "register_sensor", data: ["state": "Unknown", "name": "Geocoded Location", "unique_id": "geocoded_location", "type": "sensor", "icon": "mdi:map"], localMetadata: nil))
2022-10-17 15:06:39.042 [Info] [webhookmanager-data] [WebhookManager.swift:402] send(on:server:identifier:request:waitForResponse:) > starting request: taskKey(session: webhook-io.robbie.HomeAssistant, task: 9), server(1D9AACCx-B9DB-4853-93C1-85FC59F17765), type(WebhookResponseUnhandled), request(WebhookRequest(type: "register_sensor", data: ["state": "registration", "name": "Last Update Trigger", "type": "sensor", "unique_id": "last_update_trigger", "icon": "mdi:cellphone-wireless"], localMetadata: nil))
2022-10-17 15:06:39.043 [Error] [webhookmanager-data] [WebhookManager.swift:540] responseInfo(from:) > no persisted info for LocalUploadTask <52F66368-AC4C-4857-A2C4-7603A793EDC5>.<1> (nil)
2022-10-17 15:06:39.044 [Error] [webhookmanager-data] [WebhookManager.swift:540] responseInfo(from:) > no persisted info for LocalUploadTask <52F66368-AC4C-4857-A2C4-7603A793EDC5>.<1> (nil)
2022-10-17 15:06:39.044 [Error] [webhookmanager-data] [WebhookManager.swift:540] responseInfo(from:) > no persisted info for LocalUploadTask <52F66368-AC4C-4857-A2C4-7603A793EDC5>.<1> (nil)
2022-10-17 15:06:39.045 [Error] [webhookmanager-data] [WebhookManager.swift:540] responseInfo(from:) > no persisted info for LocalUploadTask <52F66368-AC4C-4857-A2C4-7603A793EDC5>.<1> (nil)
2022-10-17 15:06:39.046 [Error] [webhookmanager-data] [WebhookManager.swift:540] responseInfo(from:) > no persisted info for LocalUploadTask <52F66368-AC4C-4857-A2C4-7603A793EDC5>.<1> (nil)
2022-10-17 15:06:39.047 [Error] [webhookmanager-data] [WebhookManager.swift:540] responseInfo(from:) > no persisted info for LocalUploadTask <52F66368-AC4C-4857-A2C4-7603A793EDC5>.<1> (nil)
2022-10-17 15:06:39.049 [Error] [webhookmanager-data] [WebhookManager.swift:540] responseInfo(from:) > no persisted info for LocalUploadTask <52F66368-AC4C-4857-A2C4-7603A793EDC5>.<1> (nil)
2022-10-17 15:06:39.051 [Error] [webhookmanager-data] [WebhookManager.swift:540] responseInfo(from:) > no persisted info for LocalUploadTask <52F66368-AC4C-4857-A2C4-7603A793EDC5>.<1> (nil)
2022-10-17 15:06:39.053 [Error] [webhookmanager-data] [WebhookManager.swift:540] responseInfo(from:) > no persisted info for LocalUploadTask <52F66368-AC4C-4857-A2C4-7603A793EDC5>.<1> (nil)
2022-10-17 15:06:39.053 [Error] [webhookmanager-data] [WebhookManager.swift:540] responseInfo(from:) > no persisted info for LocalUploadTask <52F66368-AC4C-4857-A2C4-7603A793EDC5>.<1> (nil)
2022-10-17 15:06:39.190 [Info] [main] [WebhookManager.swift:263] sendEphemeral(server:request:) > got successful response from 1D9AACCx-B9DB-4853-93C1-85FC59F17765 for get_config: ()
2022-10-17 15:06:39.191 [Info] [main] [OnboardingAuth.swift:70] perform(checkPoint:checks:) > OnboardingAuthStepConfig: rejected(Shared.WebhookError.unmappableValue)
2022-10-17 15:06:39.192 [Info] [main] [OnboardingAuth.swift:183] undoConfigure(api:) > 
2022-10-17 15:06:39.408 [Info] [webhookmanager-data] [WebhookManager.swift:620] urlSession(_:task:didCompleteWithError:) > got response: taskKey(session: webhook-io.robbie.HomeAssistant, task: 1), type(WebhookResponseUnhandled), server(1D9AACCx-B9DB-4853-93C1-85FC59F17765), request(WebhookRequest(type: "register_sensor", data: Optional(["device_class": "battery", "state": 99, "name": "Battery Level", "unique_id": "battery_level", "type": "sensor", "attributes": [:], "icon": "mdi:battery-90", "unit_of_measurement": "%"]), localMetadata: nil)), statusCode(200), body(())
2022-10-17 15:06:39.669 [Info] [main] [Environment.swift:71] init() > WebSocket: disconnecting; permanently: true, error: nil
2022-10-17 15:06:39.670 [Info] [main] [Environment.swift:71] init() > WebSocket: phase transition to disconnected(error: nil, forReset: true)
2022-10-17 15:06:39.673 [Warning] [main] [WatchHelpers.swift:46] SyncWatchContext() > Tried to sync HAAPI config to watch but watch not paired or app not installed
2022-10-17 15:06:39.673 [Info] [main] [NotificationManagerLocalPushInterfaceExtension.swift:79] updateManagers() > 
2022-10-17 15:06:39.685 [Info] [com.apple.root.user-initiated-qos] [RealmScene.swift:71] willDelete(objects:server:realm:) > deleting actions []
2022-10-17 15:06:39.738 [Verbose] [main] [NotificationManagerLocalPushInterfaceExtension.swift:142] configure(managers:) > computed managers: [:]
2022-10-17 15:06:39.743 [Info] [webhookmanager-data] [WebhookManager.swift:620] urlSession(_:task:didCompleteWithError:) > got response: taskKey(session: webhook-io.robbie.HomeAssistant, task: 8), type(WebhookResponseUnhandled), server(1D9AACCx-B9DB-4853-93C1-85FC59F17765), request(WebhookRequest(type: "register_sensor", data: Optional(["type": "sensor", "unique_id": "geocoded_location", "name": "Geocoded Location", "state": "Unknown", "icon": "mdi:map"]), localMetadata: nil)), statusCode(200), body(())
2022-10-17 15:06:39.743 [Info] [webhookmanager-data] [WebhookManager.swift:620] urlSession(_:task:didCompleteWithError:) > got response: taskKey(session: webhook-io.robbie.HomeAssistant, task: 9), type(WebhookResponseUnhandled), server(1D9AACCx-B9DB-4853-93C1-85FC59F17765), request(WebhookRequest(type: "register_sensor", data: Optional(["state": "registration", "type": "sensor", "name": "Last Update Trigger", "icon": "mdi:cellphone-wireless", "unique_id": "last_update_trigger"]), localMetadata: nil)), statusCode(200), body(())
2022-10-17 15:06:39.745 [Info] [webhookmanager-data] [WebhookManager.swift:620] urlSession(_:task:didCompleteWithError:) > got response: taskKey(session: webhook-io.robbie.HomeAssistant, task: 7), type(WebhookResponseUnhandled), server(1D9AACCx-B9DB-4853-93C1-85FC59F17765), request(WebhookRequest(type: "register_sensor", data: Optional(["icon": "mdi:sim", "unique_id": "connectivity_sim_1", "state": "Viettel", "type": "sensor", "name": "SIM 1", "attributes": ["Current Radio Technology": "Long-Term Evolution (LTE)", "Mobile Network Code": "04", "Carrier Name": "Viettel", "Allows VoIP": true, "ISO Country Code": "vn", "Carrier ID": "0000000100000001", "Mobile Country Code": "452"]]), localMetadata: nil)), statusCode(200), body(())
2022-10-17 15:06:39.762 [Info] [webhookmanager-data] [WebhookManager.swift:620] urlSession(_:task:didCompleteWithError:) > got response: taskKey(session: webhook-io.robbie.HomeAssistant, task: 2), type(WebhookResponseUnhandled), server(1D9AACCx-B9DB-4853-93C1-85FC59F17765), request(WebhookRequest(type: "register_sensor", data: Optional(["name": "Battery State", "unique_id": "battery_state", "state": "Not Charging", "type": "sensor", "icon": "mdi:battery-90", "attributes": ["Low Power Mode": false]]), localMetadata: nil)), statusCode(200), body(())
2022-10-17 15:06:39.773 [Info] [webhookmanager-data] [WebhookManager.swift:620] urlSession(_:task:didCompleteWithError:) > got response: taskKey(session: webhook-io.robbie.HomeAssistant, task: 6), type(WebhookResponseUnhandled), server(1D9AACCx-B9DB-4853-93C1-85FC59F17765), request(WebhookRequest(type: "register_sensor", data: Optional(["state": "Cellular", "type": "sensor", "attributes": ["Cellular Technology": "4G"], "unique_id": "connectivity_connection_type", "icon": "mdi:signal", "name": "Connection Type"]), localMetadata: nil)), statusCode(200), body(())
2022-10-17 15:06:39.818 [Info] [webhookmanager-data] [WebhookManager.swift:620] urlSession(_:task:didCompleteWithError:) > got response: taskKey(session: webhook-io.robbie.HomeAssistant, task: 3), type(WebhookResponseUnhandled), server(1D9AACCx-B9DB-4853-93C1-85FC59F17765), request(WebhookRequest(type: "register_sensor", data: Optional(["unique_id": "storage", "attributes": ["Available": "62,39 GB", "Available (Important)": "68,96 GB", "Total": "127,98 GB", "Available (Opportunistic)": "63,38 GB"], "type": "sensor", "icon": "mdi:database", "state": "49.52", "name": "Storage", "unit_of_measurement": "% available"]), localMetadata: nil)), statusCode(200), body(())
2022-10-17 15:06:39.838 [Info] [webhookmanager-data] [WebhookManager.swift:620] urlSession(_:task:didCompleteWithError:) > got response: taskKey(session: webhook-io.robbie.HomeAssistant, task: 4), type(WebhookResponseUnhandled), server(1D9AACCx-B9DB-4853-93C1-85FC59F17765), request(WebhookRequest(type: "register_sensor", data: Optional(["state": "Not Connected", "type": "sensor", "name": "SSID", "unique_id": "connectivity_ssid", "icon": "mdi:wifi-off"]), localMetadata: nil)), statusCode(200), body(())
2022-10-17 15:06:39.906 [Info] [main] [HAAPI.swift:760] registerSensors() > finished registering sensors: fulfilled([(), (), (), (), (), (), (), (), ()])
2022-10-17 15:06:39.906 [Info] [webhookmanager-data] [WebhookManager.swift:620] urlSession(_:task:didCompleteWithError:) > got response: taskKey(session: webhook-io.robbie.HomeAssistant, task: 5), type(WebhookResponseUnhandled), server(1D9AACCx-B9DB-4853-93C1-85FC59F17765), request(WebhookRequest(type: "register_sensor", data: Optional(["icon": "mdi:wifi-off", "state": "Not Connected", "name": "BSSID", "unique_id": "connectivity_bssid", "type": "sensor"]), localMetadata: nil)), statusCode(200), body(())
2022-10-17 15:06:39.906 [Info] [main] [OnboardingAuth.swift:70] perform(checkPoint:checks:) > OnboardingAuthStepSensors: fulfilled()
2022-10-17 15:06:42.306 [Verbose] [main] [XCGLogger+Export.swift:17] export(from:sender:openURLHandler:) > Logs directory is: file:///private/var/mobile/Containers/Shared/AppGroup/E217D48x-0B74-4025-8CDC-B975ACA7870A/logs/
2022-10-17 15:06:42.309 [Debug] [main] [XCGLogger+Export.swift:32] export(from:sender:openURLHandler:) > Exporting logs as filename 2022-10-17_15.06.42+0700.logs.zip
2022-10-17 15:07:14.842 [Verbose] [main] [XCGLogger+Export.swift:17] export(from:sender:openURLHandler:) > Logs directory is: file:///private/var/mobile/Containers/Shared/AppGroup/E217D48x-0B74-4025-8CDC-B975ACA7870A/logs/
2022-10-17 15:07:14.844 [Debug] [main] [XCGLogger+Export.swift:32] export(from:sender:openURLHandler:) > Exporting logs as filename 2022-10-17_15.07.14+0700.logs.zip

I’ve tried:

  • re-install the ios app > Failed.
  • removed all devices: Configuration>Integration>Mobile>deleted all. Try ios app connect again. > Failed
    Every time I try to connect, server successfully registered the device. I think something’s wrong with mobile integration.
  • update Hassio to latest 9.2. Try ios app connect again > Failed
1 Like

It looks like the get_config webhook call from the app is failing and returning no data. Check your HA server logs to see if there’s anything there related to the mobile_app integration or a webhook error.

Found this log after fail connecting the app.
I think there’s something wrong with the mobile_app components, encryption error.
I remember did not install this component, it’s default.
I should try to find the source of this components, reinstall and retry.

ERROR (MainThread) [homeassistant.components.webhook] Error processing webhook 4a299d9bca74370ceff205c0385b792667f3ea1f34ad4769c2aee675c5e3e280
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/webhook/__init__.py", line 96, in async_handle_webhook
response = await webhook["handler"](hass, webhook_id, request)
File "/usr/src/homeassistant/homeassistant/components/mobile_app/webhook.py", line 188, in handle_webhook
webhook_payload = _decrypt_payload(config_entry.data[CONF_SECRET], enc_data)
File "/usr/src/homeassistant/homeassistant/components/mobile_app/helpers.py", line 83, in _decrypt_payload
message = decrypt(ciphertext, key)
File "/usr/src/homeassistant/homeassistant/components/mobile_app/helpers.py", line 48, in decrypt
return SecretBox(key).decrypt(ciphertext, encoder=Base64Encoder)
File "/usr/local/lib/python3.8/site-packages/nacl/secret.py", line 130, in decrypt
plaintext = nacl.bindings.crypto_secretbox_open(ciphertext,
File "/usr/local/lib/python3.8/site-packages/nacl/bindings/crypto_secretbox.py", line 77, in crypto_secretbox_open
ensure(res == 0, "Decryption failed. Ciphertext failed verification",
File "/usr/local/lib/python3.8/site-packages/nacl/exceptions.py", line 68, in ensure
raise raising(*args)
nacl.exceptions.CryptoError: Decryption failed. Ciphertext failed verification

What version of core do you have running?

I use old core “Home Assistant 2021.5.5.”
I had some Sonoff devices that cannot work with later version, so must stay at this version.


Recently I also tried to update to latest version but failed.

About the error, wonder if it’s related to Duckdns and Let’sEncypt.
But I still can login from web interface on the mobile without problem. so maybe that’s not.

When you enter a URL manually, the app assumes you’re using 2022.1 or later and uses a different encryption mechanism. When the server is auto-discovered, it knows the correct version and continues to use the old method. If you can get them both on the same network and discovery works you should be able to log in, but short of either manually updating the mobile_app code in your version or an app update which allows it to fall back to older encryption, there’s no way around this.

1 Like