Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update mailjet_resources.go TemplateID type #48

Merged
merged 1 commit into from
Jan 21, 2022

Conversation

gundersen-f
Copy link

Change InfoMessagesV31 struct TemplateID from interface{} to int.
{"Messages":[{"Errors":[{"ErrorClass":"","ErrorMessage":"Type mismatch. Expected type \"integer\".","ErrorRelatedTo":["TemplateID"],"StatusCode":400}]}]}

Change InfoMessagesV31 struct TemplateID from interface{} to int.
@kevpie
Copy link

kevpie commented Oct 7, 2020

Thanks for posting this.
I burned an hour or two figuring this out.

The error I was receiving in library was {"Messages":null}

When I used curl I received this

{
 "ErrorIdentifier":".....uuid....",
 "ErrorCode":"mj-0004",
 "StatusCode":400,
 "ErrorMessage":"Type mismatch. Expected type \"int64\".",
 "ErrorRelatedTo":["Messages.TemplateID"]
}

@tsidei tsidei merged commit 71917ae into mailjet:master Jan 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants