title: "An Unknown error occurred" When trying to launch my Siri Shortcut
body: <p>I am adding siri Shortcuts to my existing app.  There are three shortcuts, one to start the app with a specific value, one to increase the value by an amount and one to decrease the value by an amount. The shortcut code, for the start the app is attached here: </p>
  
  <pre><code>//
  //  StartMeetingIntentHandler.swift
  //
  
  
  import Intents
  import SwiftUI
  
  class StartMeetingIntentHandler: NSObject, StartMeetingIntentHandling {
  
  
      @ObservedObject var meeting = Meeting()
  
      func handle(intent: StartMeetingIntent, completion: @escaping (StartMeetingIntentResponse) -&gt; Void) {
          if let attendees = intent.attendees {
              meeting.meetingStarted()
              meeting.addAttendee(numberToAdd: Int(truncating: attendees))
              completion(StartMeetingIntentResponse.success(result: attendees))
          } else {
              print("failure")
          }
      }
  
      func resolveAttendees(for intent: StartMeetingIntent, with completion: @escaping (StartMeetingAttendeesResolutionResult) -&gt; Void) {
          let people = Int(truncating: intent.attendees ?? 0)
          if people &lt; 0 {
              completion(StartMeetingAttendeesResolutionResult.unsupported(forReason: StartMeetingAttendeesUnsupportedReason.negativeNumbersNotSupported))
          } else if people &gt; 1000 {
              completion(StartMeetingAttendeesResolutionResult.unsupported(forReason: StartMeetingAttendeesUnsupportedReason.greaterThanMaximumValue))
          } else {
              completion(StartMeetingAttendeesResolutionResult.success(with: people))
          }
      }
  }
  </code></pre>
  
  <p>When I run the shortcut from the Shortcuts app, I get the message "An unknown error has occurred".  How does one go about debugging that?</p>
  
  <p>After reviewing the console for the simulator I found two errors:
  1)</p>
  
  <pre><code>[INCExtensionRequest _extensionContextHost] Unexpected extension context class (null)
  </code></pre>
  
  <p>and 2)</p>
  
  <pre><code>-[WFAction runWithInput:userInterface:parameterInputProvider:variableSource:completionHandler:]_block_invoke Action &lt;WFHandleCustomIntentAction: 0x7ffe845b1a10, identifier: com.theapapp.wastedtime.AddAttendeeIntent, parameters: 2&gt; finished with error {domain: WFIntentExecutorErrorDomain, code: 103}. Error Domain=WFIntentExecutorErrorDomain Code=103 "An unknown error occurred." UserInfo={NSLocalizedDescription=An unknown error occurred., WFIntentExecutorIntentResponseErrorKey=&lt;INIntentResponse: 0x600003f63f80&gt; {
      userActivity = &lt;null&gt;;
      code = INIntentResponseCodeFailure;
  }, WFIntentExecutorIntentErrorKey=&lt;INIntent: 0x6000018f0630&gt; {
      people = 1;
  }, NSLocalizedFailureReason=Could Not Run Add Attendee}
  </code></pre>