Skip to content

[azopenai] 400 errors from azopenai (for image generation) not returning as HTTP errors #21120

Closed
@parkplusplus

Description

@parkplusplus

If there's a 400 error from the azopenai SDK it doesn't properly return the error to the user.

Response] ==> REQUEST/RESPONSE (Try=1/213.353709ms, OpTime=213.360126ms) -- RESPONSE RECEIVED
   POST https://api.openai.com/v1/images/generations
   Accept: application/json
   Authorization: REDACTED
   Content-Length: 60
   Content-Type: application/json
   User-Agent: azsdk-go-azopenai/v0.1.0 (go1.20.5; linux)
   --------------------------------------------------------------------------------
   RESPONSE Status: 400 Bad Request
   Access-Control-Allow-Origin: REDACTED

Metadata

Metadata

Labels

ClientThis issue points to a problem in the data-plane of the library.OpenAIcustomer-reportedIssues that are reported by GitHub users external to the Azure organization.needs-team-attentionWorkflow: This issue needs attention from Azure service team or SDK team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions