mailjet / mailjet-apiv3-php

[API v3] Mailjet PHP Wrapper
http://dev.mailjet.com
MIT License
267 stars 86 forks source link

Problem to import CSV files #234

Closed Milooz closed 3 years ago

Milooz commented 3 years ago

Impossible to upload a csv since beginning of september , maybe because of the update of the Guzzle library

Request.php, Line 84, if you remove the type of $body (?array), it works.

Pavlico commented 3 years ago

Hi @Milooz , please update module version and check if error is fixed.

Milooz commented 3 years ago

Hi, still the same error. Request.php line 84 If it's ?array $body, the answer is he wait a string, so i try to replace with ?string $body, and the answer is he wait an array. I dont undersand how it's possible.

if i remove the type of variable and just put $body , it works

Pavlico commented 3 years ago

@Milooz version of mailjet plugin is v1.5.4?

Milooz commented 3 years ago

yes i just update the module when you send me a message. Even if i try with a csv file with file_get_contents, i have the same problem

Pavlico commented 3 years ago

Ok removed declaring type of body param. Update and close if fixed :) Thanky

Pavlico commented 3 years ago

I assume it is fixed since no answer

Milooz commented 3 years ago

@Pavlico Sorry , i was impossible for me the last days to have an internet access. Thanks a lot for the fix!