motze92 / office365-mail

Office365 transport for Laravel
MIT License
61 stars 21 forks source link

The cURL request was retried 3 times and did not succeed #24

Open tyronemc2 opened 2 years ago

tyronemc2 commented 2 years ago

I am getting the below error when trying to send emails GuzzleHttp\Exception\RequestException cURL error 0: The cURL request was retried 3 times and did not succeed. The most likely reason for the failure is that cURL was unable to rewind the body of the request and subsequent retries resulted in the same error. Turn on the debug option to see what went wrong. See https://bugs.php.net/bug.php?id=47204 for more information. (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://graph.microsoft.com/v1.0/users/hello@example.com/sendmail

The HTTP response for the 3 retries. HTTP Error 411. The request must be chunked or have a content length.

Length Required HTTP Error 411. The request must be chunked or have a content length.

Length Required HTTP Error 411. The request must be chunked or have a content length.

image

motze92 commented 1 year ago

Do you have more details? Maybe a code example how do you send your mail?