openai-openapi icon indicating copy to clipboard operation
openai-openapi copied to clipboard

[Bug] Unexpected unsupported content type errors

Open StephenHodgson opened this issue 1 year ago • 0 comments

I got reports that this started happening today:

{
  "error": {
    "message": "Unsupported content type: 'application/json; charset=utf-8'. This API method only accepts 'application/json' requests, but you specified the header 'Content-Type: application/json; charset=utf-8'. Please try again with a supported content type.",
    "type": "invalid_request_error",
    "param": null,
    "code": "unsupported_content_type"
  }
}

Adding Charset to the content-type should be acceptable. Didn't see any changes go into the schema so likely an issue internally in the API implementation.

StephenHodgson avatar Feb 13 '24 12:02 StephenHodgson