json: cannot unmarshal object into Go value of type []models.IntentAgent
katopz opened this issue · comments
When I try to use
intents, err := client.IntentsFindAllRequest()
if err != nil {
log.Fatal(err)
}
for _, intent := range intents {
fmt.Println(intent.Name)
}
I got
json: cannot unmarshal object into Go value of type []models.IntentAgent
Even I didn't make any request yet, any hint?