We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi !
When working with this API, I'm facing difficulties getting the Sendinblue API error message.
result, resp, err := sib.TransactionalEmailsApi.SendTransacEmail(ctx, sendinblueMail) if err != nil { log.Println("Error when calling TransactionalEmailsApi->SendTransacEmail:", err.Error()) return c.Status(resp.StatusCode).SendString(err.Error()) }
I'm only getting the generic error message : 2023/05/26 09:42:05 Error when calling TransactionalEmailsApi->SendTransacEmail: 400 Bad Request
2023/05/26 09:42:05 Error when calling TransactionalEmailsApi->SendTransacEmail: 400 Bad Request
When I want to get the specific message like :
{ "code": "invalid_parameter", "message": "File extension mismatch in 'url' & 'name' passed in the request" }
How to get that from the err variable, since the response object body has already been read and closed, we can not extract it again. Thank you
err
The text was updated successfully, but these errors were encountered:
You can do that by following below code:
(not able to paste the code)
Sorry, something went wrong.
No branches or pull requests
Hi !
When working with this API, I'm facing difficulties getting the Sendinblue API error message.
I'm only getting the generic error message :
2023/05/26 09:42:05 Error when calling TransactionalEmailsApi->SendTransacEmail: 400 Bad Request
When I want to get the specific message like :
How to get that from the
err
variable, since the response object body has already been read and closed, we can not extract it again.Thank you
The text was updated successfully, but these errors were encountered: