Skip to content

Print the API error body and x-request-id on failures #26

Open

Description

@Anomalyru

Problem

On an API error eds prints only the status line, for example:

Error: workflow client delete application: 500 Internal Server Error
Error: workflow client logs: 400 Bad Request

The response body and the x-request-id header are dropped, and the body often holds the actual answer:

  • eds wf app create → 400 Bad Request; the body says repository must contain Dockerfile in the root directory.
  • Every eds wf … call → 403 Forbidden when the API key's product scope lacks Workflow Studio; the body says API key verification failed: Key does not have access to this product.

To see these messages, one has to repeat the call with curl.

Request

Include the response body (truncated, secrets redacted) and the x-request-id in the error line and in the --json error output. The request id would make reports to support actionable.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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