#Error on Upload File - "The browser (or proxy) sent a request that this server could not understand"

1 messages · Page 1 of 1 (latest)

faint oasis
#

Upload file - FAILS
$ curl https://api.openai.com/v1/files -H "Authorization: Bearer [mykeyhere]" -F purpose="fine-tune" -F file="test.jsonl"

{
"error": {
"message": "The browser (or proxy) sent a request that this server could not understand.",
"type": "server_error",
"param": null,
"code": null
}
}

The test.jsonl file contains:

{"name": "John Doe"}

I originally tried with a much larger file thinking it was a problem with my file, but this is the test file I created and it still fails.

I can confirm that List files works successfully:

List Files - works successfully
$ curl https://api.openai.com/v1/files -H "Authorization: Bearer [mykeyhere]"

{
"object": "list",
"data": []
}