mailjet-apiv3-go
mailjet-apiv3-go copied to clipboard
Post "https://api.mailjet.com/v3.1/send": connection error: PROTOCOL_ERROR
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. https://github.com/golang/go/issues/29125 https://github.com/golang/go/issues/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 🙏