openai / openai/openai-openapi
Unsupported content type: 'multipart/form-data'
Nobody has claimed this yet.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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