{
  "id": 254154,
  "title": "Bad Request when trying to submit through the Kaggle CLI on a Google Colab Notebook",
  "url": "/competitions/gan-getting-started/discussion/254154",
  "author_name": "Tomer Hadad",
  "post_date": "2021-07-20T10:35:09.480000",
  "votes": 0,
  "comment_count": 0,
  "views": 0,
  "content": "<p>Hi there,<br>\nI'm getting a '400 - Bad Request' response when trying to submit my images.zip to the competition through the Kaggle CLI.<br>\nI have placed the kaggle.json in the correct directory and that is confirmed by running the 'kaggle competitions submissions -c gan-getting-started' command and getting the list of my submissions.</p>\n<p>The command I run is:<br>\n!kaggle competitions submit -c gan-getting-started -f images.zip -m \"Generated Images Submission\"<br>\nand the response is<br>\n100% 4.17M/4.17M [00:01&lt;00:00, 2.80MB/s]<br>\n400 - Bad Request</p>\n<p>The zip is named images.zip as required, and contains only the images themselves (no folders). all images are jpg, RGB size 256x256.</p>\n<p>Does it have something to do with the file size? The size is usually between 80 and 100MB.</p>\n<p>Solving this will make my life much easier :)</p>\n<p>Thanks in advance!</p>",
  "messages": [
    {
      "id": 1394417,
      "postDate": "2021-07-20T10:35:09.480Z",
      "content": "<p>Hi there,<br>\nI'm getting a '400 - Bad Request' response when trying to submit my images.zip to the competition through the Kaggle CLI.<br>\nI have placed the kaggle.json in the correct directory and that is confirmed by running the 'kaggle competitions submissions -c gan-getting-started' command and getting the list of my submissions.</p>\n<p>The command I run is:<br>\n!kaggle competitions submit -c gan-getting-started -f images.zip -m \"Generated Images Submission\"<br>\nand the response is<br>\n100% 4.17M/4.17M [00:01&lt;00:00, 2.80MB/s]<br>\n400 - Bad Request</p>\n<p>The zip is named images.zip as required, and contains only the images themselves (no folders). all images are jpg, RGB size 256x256.</p>\n<p>Does it have something to do with the file size? The size is usually between 80 and 100MB.</p>\n<p>Solving this will make my life much easier :)</p>\n<p>Thanks in advance!</p>",
      "rawMarkdown": "Hi there,\nI'm getting a '400 - Bad Request' response when trying to submit my images.zip to the competition through the Kaggle CLI.\nI have placed the kaggle.json in the correct directory and that is confirmed by running the 'kaggle competitions submissions -c gan-getting-started' command and getting the list of my submissions.\n\nThe command I run is:\n!kaggle competitions submit -c gan-getting-started -f images.zip -m \"Generated Images Submission\"\nand the response is\n100% 4.17M/4.17M [00:01<00:00, 2.80MB/s]\n400 - Bad Request\n\nThe zip is named images.zip as required, and contains only the images themselves (no folders). all images are jpg, RGB size 256x256.\n\nDoes it have something to do with the file size? The size is usually between 80 and 100MB.\n\nSolving this will make my life much easier :)\n\nThanks in advance!"
    }
  ],
  "comments": [],
  "raw_markdown_by_id": {
    "1394417": "Hi there,\nI'm getting a '400 - Bad Request' response when trying to submit my images.zip to the competition through the Kaggle CLI.\nI have placed the kaggle.json in the correct directory and that is confirmed by running the 'kaggle competitions submissions -c gan-getting-started' command and getting the list of my submissions.\n\nThe command I run is:\n!kaggle competitions submit -c gan-getting-started -f images.zip -m \"Generated Images Submission\"\nand the response is\n100% 4.17M/4.17M [00:01<00:00, 2.80MB/s]\n400 - Bad Request\n\nThe zip is named images.zip as required, and contains only the images themselves (no folders). all images are jpg, RGB size 256x256.\n\nDoes it have something to do with the file size? The size is usually between 80 and 100MB.\n\nSolving this will make my life much easier :)\n\nThanks in advance!"
  }
}