Interaction donation fails

I have just gotten started working with intents and donating them after I got help figuring out how to make them work.

Now, I'm getting an unknown error when trying to donate my INInteraction:

Code Block swift
let interaction = INInteraction(intent: drink.intent, response: nil)
interaction.identifier = drink.id.uuidString
interaction.donate(completion: { error in
if error != nil {
if let error = error as NSError? {
print("Interaction donation failed: ", error)
}
} else {
print("Successfully donated interaction")
}
})


The error I'm getting is:

Interaction donation failed:  Error Domain=IntentsErrorDomain Code=1901 "(null)" UserInfo={NSUnderlyingError=0x600001a97ed0 {Error Domain=CSIndexErrorDomain Code=-1003 "(null)"}}

I've been searching a lot without success. What's going on here?
I'm having the same issue in SoupChef app.
Interaction donation fails
 
 
Q