mailjet-apiv3-go icon indicating copy to clipboard operation
mailjet-apiv3-go copied to clipboard

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

Open nam-truong-le opened this issue 2 years ago • 2 comments

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

nam-truong-le avatar Aug 04 '22 13:08 nam-truong-le

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

bogdanprodanj avatar Aug 29 '22 19:08 bogdanprodanj

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

nam-truong-le avatar Aug 30 '22 06:08 nam-truong-le

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.

kgilonne avatar Apr 19 '23 05:04 kgilonne

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

kgilonne avatar Apr 19 '23 05:04 kgilonne