{
  "id": 629850,
  "title": "400 Client Error using Kaggle API",
  "url": "/competitions/csiro-biomass/discussion/629850",
  "author_name": "",
  "post_date": "2025-11-18T01:57:32.902105200Z",
  "votes": null,
  "comment_count": 2,
  "views": 0,
  "content": "<p>I'm trying to submit predictions to the competition using the CLI. My submission command is:</p>\n<pre><code> competitions submit - csiro-biomass -f /content/sample_submission.csv -m \n</code></pre>\n<p>But I'm getting the error:</p>\n<pre><code>% / [:&lt;:, B/s]\nClient : Bad Request  url: https://www.kaggle./api/v1/competitions/submissions/submit/csiro-biomass\n</code></pre>\n<p>Heres what I checked:\nThe file path exists and loads correctly.</p>\n<p>I'm logged into Kaggle using my API key (kaggle.json is configured).</p>\n<p><em>I'm submitting the sample_submission for testing purposes</em></p>\n<p>If anyone has encountered this issue or knows what commonly causes a “400 Bad Request” when submitting to Kaggle competitions, I’d appreciate any guidance.😊</p>",
  "messages": [
    {
      "id": "3335373",
      "postDate": "11/18/2025 01:57:32",
      "content": "<p>I'm trying to submit predictions to the competition using the CLI. My submission command is:</p>\n<pre><code> competitions submit - csiro-biomass -f /content/sample_submission.csv -m \n</code></pre>\n<p>But I'm getting the error:</p>\n<pre><code>% / [:&lt;:, B/s]\nClient : Bad Request  url: https://www.kaggle./api/v1/competitions/submissions/submit/csiro-biomass\n</code></pre>\n<p>Heres what I checked:\nThe file path exists and loads correctly.</p>\n<p>I'm logged into Kaggle using my API key (kaggle.json is configured).</p>\n<p><em>I'm submitting the sample_submission for testing purposes</em></p>\n<p>If anyone has encountered this issue or knows what commonly causes a “400 Bad Request” when submitting to Kaggle competitions, I’d appreciate any guidance.😊</p>",
      "rawMarkdown": "I'm trying to submit predictions to the competition using the CLI. My submission command is:\n```\n!kaggle competitions submit -c csiro-biomass -f /content/sample_submission.csv -m \"submission\"\n```\nBut I'm getting the error:\n```\n100% 161/161 [00:00<00:00, 428B/s]\n400 Client Error: Bad Request for url: https://www.kaggle.com/api/v1/competitions/submissions/submit/csiro-biomass\n```\n\nHeres what I checked:\nThe file path exists and loads correctly.\n\nI'm logged into Kaggle using my API key (kaggle.json is configured).\n\n*I'm submitting the sample_submission for testing purposes*\n\nIf anyone has encountered this issue or knows what commonly causes a “400 Bad Request” when submitting to Kaggle competitions, I’d appreciate any guidance.😊",
      "votes": null
    },
    {
      "id": "3335389",
      "postDate": "11/18/2025 02:21:23",
      "content": "<p>Someone may have a better answer - but it was my impression you cannot submit with the API for competitions that require a notebook to be used.   </p>",
      "rawMarkdown": "Someone may have a better answer - but it was my impression you cannot submit with the API for competitions that require a notebook to be used.",
      "votes": null
    },
    {
      "id": "3335412",
      "postDate": "11/18/2025 02:43:21",
      "content": "<p>Ahh thank you, I didn't catch that </p>",
      "rawMarkdown": "Ahh thank you, I didn't catch that",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 3335389,
      "author_name": "pcjimmmy",
      "author_url": "",
      "post_date": "11/18/2025 02:21:23",
      "content": "<p>Someone may have a better answer - but it was my impression you cannot submit with the API for competitions that require a notebook to be used.   </p>",
      "votes": null,
      "replies": [
        {
          "id": 3335412,
          "author_name": "mrpies",
          "author_url": "",
          "post_date": "11/18/2025 02:43:21",
          "content": "<p>Ahh thank you, I didn't catch that </p>",
          "votes": null,
          "replies": []
        }
      ]
    }
  ],
  "raw_markdown_by_id": {
    "3335373": "I'm trying to submit predictions to the competition using the CLI. My submission command is:\n```\n!kaggle competitions submit -c csiro-biomass -f /content/sample_submission.csv -m \"submission\"\n```\nBut I'm getting the error:\n```\n100% 161/161 [00:00<00:00, 428B/s]\n400 Client Error: Bad Request for url: https://www.kaggle.com/api/v1/competitions/submissions/submit/csiro-biomass\n```\n\nHeres what I checked:\nThe file path exists and loads correctly.\n\nI'm logged into Kaggle using my API key (kaggle.json is configured).\n\n*I'm submitting the sample_submission for testing purposes*\n\nIf anyone has encountered this issue or knows what commonly causes a “400 Bad Request” when submitting to Kaggle competitions, I’d appreciate any guidance.😊",
    "3335389": "Someone may have a better answer - but it was my impression you cannot submit with the API for competitions that require a notebook to be used.",
    "3335412": "Ahh thank you, I didn't catch that"
  },
  "source": "meta"
}