You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I get the following error when using the SubscriberApi.GetNotificationFeed API with novu cloud and this [email protected]:
unable to unmarshal response body: json: cannot unmarshal array into Go struct field .data.cta.Action.buttons of type struct { Type string "json:\"type\""; Content string "json:\"content\""; ResultContent string "json:\"resultContent\"" }
There seems to be something wrong with the types.
The model for CTA of the SDK:
type CTA struct {
Type string `json:"type"`
Action struct {
Status string `json:"status"`
Buttons struct {
Type string `json:"type"`
Content string `json:"content"`
ResultContent string `json:"resultContent"`
} `json:"buttons"`
Result struct {
Payload map[string]interface{} `json:"payload"`
Type string `json:"type"`
} `json:"result"`
}
}
Example response from the novu API which caused the error:
I get the following error when using the SubscriberApi.GetNotificationFeed API with novu cloud and this [email protected]:
unable to unmarshal response body: json: cannot unmarshal array into Go struct field .data.cta.Action.buttons of type struct { Type string "json:\"type\""; Content string "json:\"content\""; ResultContent string "json:\"resultContent\"" }
There seems to be something wrong with the types.
The model for CTA of the SDK:
Example response from the novu API which caused the error:
Is the SDK not compatible with the current novu version?
The text was updated successfully, but these errors were encountered: