Marius82
(Marius)
December 16, 2020, 11:51am
1
Hi,
everytime I call a script with the iOS Siri Shortcut I get the following error message on the iPhone:
But the script is called correctly and it is working as expected, but the error message is annoying. Is tit a bug or do I anything wrong?
The script:
tagesschau:
alias: Tageschau News
sequence:
- service: sonos.unjoin
entity_id: media_player.bad
- delay: 00:00:01
- service: media_player.volume_set
data:
volume_level: '{{ lautstarke | float }}'
entity_id: media_player.bad
- service: media_player.clear_playlist
data: {}
entity_id: media_player.bad
- service: media_extractor.play_media
data:
media_content_id: http://www.tagesschau.de/100sekunden/index.html
media_content_type: music
entity_id: media_player.bad
The Shortcut:
Thank you
zacwest
December 17, 2020, 6:19am
2
The error there (it definitely could be cleaned up a bit wording-wise) is that the API connection failed in some way. The last time I saw this situation happening, the server was responding back with a 503. Chances are this means that the request is succeeding but the app is being told that a server error occurred. The resolution for this previous time was removing the mobile_app
integration (in the HA configuration) and allowing the app to recreate that.
If this does not work, you should export your logs so you can take a look at the HTTP call for the Siri Shortcut so we can see what is erroring. You can do this in App Configuration > Export Logs.
Marius82
(Marius)
December 17, 2020, 9:56am
3
Hi,
I remove and recreate the mobile_app integration but the error still appears.
So I export the log:
-- ** ** ** --
2020-12-17 10:47:43.252 [Info] > Extensions-Intents Version: 2020.7 Build: 11 PID: 8772
2020-12-17 10:47:43.252 [Info] > XCGLogger Version: 7.0.1 - Level: Debug
2020-12-17 10:47:43.253 [Info] > XCGLogger appending log to: file:///private/var/mobile/Containers/Shared/AppGroup/FB6B3DF2-D18B-4149-B0ED-1D6235125088/logs/log.txt
2020-12-17 10:47:43.262 [Info] [webhookmanager-data] [WebhookManager.swift:637] init(identifier:delegate:delegateQueue:background:) > webhook-io.robbie.HomeAssistant.Intents initial tasks: []
2020-12-17 10:47:43.262 [Info] [webhookmanager-data] [WebhookManager.swift:637] init(identifier:delegate:delegateQueue:background:) > non-background initial tasks: []
2020-12-17 10:47:43.264 [Info] [com.apple.siri.extension] [IntentHandler.swift:52] handler(for:) > for <CallServiceIntent: 0x10360c930> {
payload = {"lautstarke":"0.06"};
service = script.tagesschau;
} found handler <Extensions_Intents.CallServiceIntentHandler: 0x103637b30>
2020-12-17 10:47:43.265 [Info] [com.apple.siri.extension] [CallService.swift:17] resolveService(for:with:) > using given script.tagesschau
2020-12-17 10:47:43.266 [Info] [INCExtensionContextBatchSlotResolutionQueue] [CallService.swift:27] resolvePayload(for:with:) > using provided {"lautstarke":"0.06"}
2020-12-17 10:47:43.271 [Info] [com.apple.siri.extension] [IntentHandler.swift:52] handler(for:) > for <CallServiceIntent: 0x1037146c0> {
payload = {"lautstarke":"0.06"};
service = script.tagesschau;
} found handler <Extensions_Intents.CallServiceIntentHandler: 0x103715820>
2020-12-17 10:47:43.311 [Info] [com.apple.siri.extension] [IntentHandler.swift:52] handler(for:) > for <CallServiceIntent: 0x10374a740> {
payload = {"lautstarke":"0.06"};
service = script.tagesschau;
} found handler <Extensions_Intents.CallServiceIntentHandler: 0x10370a5a0>
2020-12-17 10:47:43.311 [Verbose] [com.apple.siri.extension] [CallService.swift:107] handle(intent:completion:) > Configured intent <CallServiceIntent: 0x10374a740> {
payload = {"lautstarke":"0.06"};
service = script.tagesschau;
}
2020-12-17 10:47:43.311 [Verbose] [com.apple.siri.extension] [CallService.swift:127] handle(intent:completion:) > Handling call service shortcut script, tagesschau
2020-12-17 10:47:43.318 [Debug] [webhookmanager-data] [BackgroundTask.swift:54] execute(withName:beginBackgroundTask:endBackgroundTask:wrapping:) > started background task webhook-send (E0327C87-5D20-4299-A0C5-EE2B45C7F629)
2020-12-17 10:47:43.325 [Info] [webhookmanager-data] [WebhookManager.swift:323] send(on:identifier:request:waitForResponse:) > starting request: taskKey(session: webhook-io.robbie.HomeAssistant.Intents, task: 1), type(WebhookResponseServiceCall), request(WebhookRequest(type: "call_service", data: ["domain": "script", "service_data": ["lautstarke": 0.06], "service": "tagesschau"], localMetadata: nil))
2020-12-17 10:47:51.942 [Error] [main] [WebhookManager.swift:507] urlSession(_:task:didCompleteWithError:) > failed request for WebhookResponseServiceCall: unacceptableStatusCode(503)
2020-12-17 10:47:51.945 [Error] [main] [CallService.swift:137] handle(intent:completion:) > Error when calling service in shortcut unacceptableStatusCode(503)
2020-12-17 10:47:52.022 [Debug] [main] [BackgroundTask.swift:63] execute(withName:beginBackgroundTask:endBackgroundTask:wrapping:) > ending background task webhook-send (E0327C87-5D20-4299-A0C5-EE2B45C7F629)
-- ** ** ** --
I’m on iOS 14.3
Perhaps it helps you to help me
Thank you
zacwest
December 17, 2020, 11:14pm
4
Your HA is unfortunately erroring. I am not sure how to diagnose it but I do not believe the iOS app is behaving incorrectly here.