Erreur lors de l'export des données

Je n’ai jamais uploadé un fichier de cette taille. Je ne sais pas si ça ne pose pas de pb àcurl et/ou au serveur…

Essayez déjà de voir ce que dit curl en ajoutant les option --verbose --trace-time.

J’ai vu sur le net que pour de gros fichier les gens ajoutent parfois -H "Transfer-Encoding: chunked" ou --data-binary ou -T je ne sais pas si ça changera quelque chose dans votre cas.

J’ai essayé avec plusieurs mélanges de paramètre, j’obtiens la log suivante :

23:51:37.968000 < HTTP/1.1 100 Continue
23:52:37.343000 * schannel: client wants to read 102400 bytes
23:52:37.343000 * schannel: encrypted data buffer: offset 0 length 103424
23:52:37.343000 * schannel: encrypted data got 1327
23:52:37.343000 * schannel: encrypted data buffer: offset 1327 length 103424
23:52:37.359000 * schannel: decrypted data length: 1298
23:52:37.359000 * schannel: decrypted data added: 1298
23:52:37.359000 * schannel: decrypted data cached: offset 1298 length 102400
23:52:37.359000 * schannel: encrypted data buffer: offset 0 length 103424
23:52:37.375000 * schannel: decrypted data buffer: offset 1298 length 102400
23:52:37.375000 * schannel: schannel_recv cleanup
23:52:37.375000 * schannel: decrypted data returned 1298
23:52:37.375000 * schannel: decrypted data buffer: offset 0 length 102400
23:52:37.375000 < HTTP/1.1 405
23:52:37.375000 < Server: nginx/1.12.2
23:52:37.390000 < Date: Sun, 03 Jun 2018 21:52:37 GMT
23:52:37.390000 < Content-Type: text/html;charset=utf-8
23:52:37.390000 < Content-Length: 1115
23:52:37.390000 < Connection: keep-alive
23:52:37.390000 < Content-Language: en
23:52:37.390000 <
<!doctype html><html lang="en"><head><title>HTTP Status 405 ÔÇô Method Not Allowed</title><style type="text/css">h1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} h2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} h3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} body {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} b {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} p {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;} a {color:black;} a.name {color:black;} .line {height:1px;background-color:#525D76;border:none;}</style></head><body><h1>HTTP Status 405 ÔÇô Method Not Allowed</h1><hr class="line" /><p><b>Type</b> Status Report</p><p><b>Message</b> HTTP method PUT is not supported by this URL</p><p><b>Description</b> The method received in the request-line is known by the origin server but not supported by the target resource.</p><hr class="line" /><h3>Apache Tomcat/9.0.8</h3></body></html>23:52:37.406000 * Connection #0 to host immodevabed.e3m.simplicite.io left intact

C:\Users\aek>

Je penses que le pb est là :
HTTP Status 405 ÔÇô Method Not Allowed et HTTP method PUT is not supported by this URL. Mais j’avoue que je ne comprends pas ce que cela veut dire.
Je n’arrive toujours pas à importer mon fichier zip.
Auriez-vous d’autres pistes svp ?
Merci.
Abed.

Le PUT n’est pas géré par le enpoint /io il faut faire du POST.

Si vous ne m’indiquez pas la commande curl avec les paramètres que vous utilisez je ne peux pas vous aider.

Voici la commande :

curl -u designer:MotDePasse -b cookies.txt -c cookies.txt --form service=zipimport --header "Content-Type: application/zip" -T "D:\immoDocument.zip" https://immodevabed.e3m.simplicite.io/io --verbose --trace-time

Et voici le retour :

<!doctype html><html lang="en"><head><title>HTTP Status 405 ÔÇô Method Not Allowed</title><style type="text/css">h1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} h2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} h3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} body {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} b {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} p {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;} a {color:black;} a.name {color:black;} .line {height:1px;background-color:#525D76;border:none;}</style></head><body><h1>HTTP Status 405 ÔÇô Method Not Allowed</h1><hr class="line" /><p><b>Type</b> Status Report</p><p><b>Message</b> HTTP method PUT is not supported by this URL</p><p><b>Description</b> The method received in the request-line is known by the origin server but not supported by the target resource.</p><hr class="line" /><h3>Apache Tomcat/9.0.8</h3></body></html>23:24:52.203000 * Connection #0 to host immodevabed.e3m.simplicite.io left intact````

Je ne sais pas ce que fait l’option -T mais si ça fait un PUT c’est, comme je l’ai dit, pas géré par le endpoint /io, donc c’est sans doute pas la bonne approche.

J’ai fat un test avec un gros fichier ZIP (> 200Mb), l’upload ne pose pas de pb (une fois le MAX_UPLOAD_SIZE positionné à une valeur appropriée) mais, une fois uploadé et dezippé, son traitement ne semble pas se dérouler correctement.

Nous investiguons.