openai / openai/openai-openapi

Unsupported content type: 'multipart/form-data'

Open
#502 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

api
Dominant language
No language data
Stars
2.5k
Forks
527
Avg merge
1h 46m
Merged PRs (30d)
2

Description

Started to get this error from today

Error code: 400 - {'error': {'message': "Unsupported content type: 'multipart/form-data'. This API method only accepts 'application/json' requests, but you specified the header 'Content-Type: multipart/form-data'. Please try again with a supported content type.", 'type': 'invalid_request_error', 'param': None, 'code': 'unsupported_content_type'}}

Not sure why it started appearing as there was no change in the code base on my end. It does not happen every time, but it is quite frequent. Even though nothing has been changed in the code.

Please let me know if you need any more information to solve this issue

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The report names no repository file, test, or reproducible request; start by isolating the intermittent request that sends multipart/form-data instead of application/json. Done means identifying the cause and confirming the affected API behavior or specification is corrected.

Written by the indexing model from the issue text.

Assessment

Tech stack
openapi
Domain
api
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.