Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Content-type fix #659

Merged
merged 2 commits into from
Feb 15, 2024
Merged

Content-type fix #659

merged 2 commits into from
Feb 15, 2024

Conversation

grulex
Copy link
Contributor

@grulex grulex commented Feb 13, 2024

Sometimes I get answer for all request:
{ "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" } }

It depends of account.
There is no such header "charset:utf-8" in the official library on python

@thunderInfy
Copy link

I had the same issue and had tried the same fix yesterday.

@grulex
Copy link
Contributor Author

grulex commented Feb 14, 2024

@thunderInfy Temporary you may use my fork, I applied it for few users and it works

@sashabaranov
Copy link
Owner

@grulex please rebase your PR, I've just fixed all the linter warnings

Copy link

codecov bot commented Feb 15, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (a7954c8) 98.44% compared to head (24e2531) 98.44%.
Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #659   +/-   ##
=======================================
  Coverage   98.44%   98.44%           
=======================================
  Files          24       24           
  Lines        1347     1347           
=======================================
  Hits         1326     1326           
  Misses         15       15           
  Partials        6        6           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@sashabaranov sashabaranov merged commit 66bae3e into sashabaranov:master Feb 15, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants