mailjet/mailjet-apiv3-go

Post "https://api.mailjet.com/v3.1/send": connection error: PROTOCOL_ERROR

nam-truong-le opened this issue · 4 comments

I'm getting this error. Would you mind checking it? With some retires, it works.

Could you please provide a code snippet so I can try to reproduce this error?

This happens very rarely, I added a retry mechanism to my code and since then it works (still the first attempt fails rarely).

Hello @nam-truong-le, this kind of error happen when using a HTTP2 connection (https://pkg.go.dev/golang.org/x/net/http2) and stream is reset or simply failing.
golang/go#29125
golang/go#31534

A retry mechanism is always recommended whatever the endpoint your are calling 👍
Simply ensure that you are not retrying on fatal errors.

I just noticed how old is this issue, will close 🙏