httpie / cli

🥧 HTTPie CLI — modern, user-friendly command-line HTTP client for the API era. JSON support, colors, sessions, downloads, plugins & more.
https://httpie.io
BSD 3-Clause "New" or "Revised" License
32.67k stars 3.68k forks source link

I got [reports](https://github.com/RageAgainstThePixel/OpenAI-DotNet/issues/236) that this started happening today: #1560

Closed jpmaniqis closed 1 month ago

jpmaniqis commented 4 months ago

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.

Originally posted by @StephenHodgson in https://github.com/openai/openai-openapi/issues/194

Originally posted by @jpmaniqis in https://github.com/mdn/content/issues/32266

Ousret commented 1 month ago

Please refrain yourself from posting complete unrelated things to HTTPie. This create too much noise.