{"action":"created","issue":{"url":"https://api.github.com/repos/mailjet/mailjet-apiv3-php-simple/issues/108","labels_url":"https://api.github.com/repos/mailjet/mailjet-apiv3-php-simple/issues/108/labels{/name}","comments_url":"https://api.github.com/repos/mailjet/mailjet-apiv3-php-simple/issues/108/comments","events_url":"https://api.github.com/repos/mailjet/mailjet-apiv3-php-simple/issues/108/events","html_url":"https://github.com/mailjet/mailjet-apiv3-php-simple/issues/108","id":98702957,"number":108,"title":"Erreur 500 method manyContacts","user":{"login":"Romano83","id":12826839,"avatar_url":"https://avatars.githubusercontent.com/u/12826839?v=3","gravatar_id":"","url":"https://api.github.com/users/Romano83","html_url":"https://github.com/Romano83","followers_url":"https://api.github.com/users/Romano83/followers","following_url":"https://api.github.com/users/Romano83/following{/other_user}","gists_url":"https://api.github.com/users/Romano83/gists{/gist_id}","starred_url":"https://api.github.com/users/Romano83/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Romano83/subscriptions","organizations_url":"https://api.github.com/users/Romano83/orgs","repos_url":"https://api.github.com/users/Romano83/repos","events_url":"https://api.github.com/users/Romano83/events{/privacy}","received_events_url":"https://api.github.com/users/Romano83/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-08-03T09:10:19Z","updated_at":"2015-08-17T10:28:43Z","closed_at":"2015-08-17T10:28:43Z","body":"Bonjour,\r\n\r\nje suis une fois de plus confronté à un problème avec l'API.\r\nLors de l'envoi d'une campagne, je me retrouve avec une erreur de type 500 lorsque j'appelle la méthode `manycontacts`.\r\nJe précise qu'il s'agit d'une campagne avec plus de 30000 contacts pour laquelle j'ajoute les contacts par \"paquet\" de 5000.\r\n\r\nVoici la partie de ma fonction que appelle la méthode `manycontacts`\r\n```php\r\n$arrContacts = explode ( \",\", $contacts );\r\n$arrContactsChunck = array_chunk ( $arrContacts, 5000);\r\nforeach ($arrContactsChunck as $arrChunck){\r\n\t// Parameters\r\n\t$params = array(\r\n\t\t\t'method' => 'POST',\r\n\t\t\t'addresses' => $arrChunck,\r\n\t\t\t'listID' => $list_id\r\n\t);\r\n\t// Call\r\n\t$mj->manyContacts($params);\r\n\t$mj->_response_code ? Zend_Registry::get('log')->log('Application_Model_DbTable_Emailing Response 2 = ' . $mj->_response_code, 0) : false;\r\n}\r\n```\r\n\r\nPour info, j'ai lancé une campagne précédente (quelques minutes auparavant) avec environ 10000 contacts qui est passée sans problème (statut de réponse à 201 pour l'ensemble des méthodes de l'API appelées).\r\n\r\nY aurait-il une limitation dans le nombre de contacts qu'on peut ajouter dans une campagne ? Ou le problème vient-il d'ailleurs ?\r\n\r\nMerci d'avance pour votre réponse,\r\nRomain"},"comment":{"url":"https://api.github.com/repos/mailjet/mailjet-apiv3-php-simple/issues/comments/131770068","html_url":"https://github.com/mailjet/mailjet-apiv3-php-simple/issues/108#issuecomment-131770068","issue_url":"https://api.github.com/repos/mailjet/mailjet-apiv3-php-simple/issues/108","id":131770068,"user":{"login":"Romano83","id":12826839,"avatar_url":"https://avatars.githubusercontent.com/u/12826839?v=3","gravatar_id":"","url":"https://api.github.com/users/Romano83","html_url":"https://github.com/Romano83","followers_url":"https://api.github.com/users/Romano83/followers","following_url":"https://api.github.com/users/Romano83/following{/other_user}","gists_url":"https://api.github.com/users/Romano83/gists{/gist_id}","starred_url":"https://api.github.com/users/Romano83/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Romano83/subscriptions","organizations_url":"https://api.github.com/users/Romano83/orgs","repos_url":"https://api.github.com/users/Romano83/repos","events_url":"https://api.github.com/users/Romano83/events{/privacy}","received_events_url":"https://api.github.com/users/Romano83/received_events","type":"User","site_admin":false},"created_at":"2015-08-17T10:28:43Z","updated_at":"2015-08-17T10:28:43Z","body":"Bonjout @arnaudbreton.\r\n\r\nEffectivement, le problème est résolu. J'avais oublié de fermé l'issue.\r\n\r\nMerci encore !\r\n"}}