Skip to content

Return an error message when OpenAI returns an HTML error instead of JSON. #447

@kayhantolga

Description

@kayhantolga

OpenAI returns an HTML message whenever it encounters an internal error, which causes the SDK to throw an exception without any meaningful message. It is important to catch these cases and return meaningful error messages.
here are sample issues: #408 #277

Metadata

Metadata

Assignees

Labels

Ready for next versionThis issue solved and waiting for next releasebugSomething isn't working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions