Skip to content

apierror.Error Code is empty #393

@tpoxa

Description

@tpoxa

I need to determinate not found error code explicitly.

(*apierror.Error)(0x14000294000)(GET "https://api.openai.com/v1/assistants/asst_flow_1": 404 Not Found {
    "message": "No assistant found with id 'asst_flow_1'.",
    "type": "invalid_request_error",
    "param": null,
    "code": null
  })

I expected to have code field filled with 404 error or something. Looks like a bug to me.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions