Post "https://api.mailjet.com/v3.1/send": connection error: PROTOCOL_ERROR
nam-truong-le opened this issue · 4 comments
nam-truong-le commented
I'm getting this error. Would you mind checking it? With some retires, it works.
bogdanprodanj commented
Could you please provide a code snippet so I can try to reproduce this error?
nam-truong-le commented
This happens very rarely, I added a retry mechanism to my code and since then it works (still the first attempt fails rarely).
kgilonne commented
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.
kgilonne commented
I just noticed how old is this issue, will close 🙏