Skip to content

Parser of GitLab error responses fails #260

@mdeknowis

Description

@mdeknowis

We are using 4.8.50 of gitlab4j-api.

We experienced that GitLab returns errors e.g. in case of POST api/v4/groups as

{"error":"path is missing"}

Hence org.gitlab4j.api.GitLabApiException.GitLabApiException(Response) fails to parse the body, because it only supports this structure:

public class ErrorMessage {

    private String message;
...
}

So we have no chance to get the error message.

So it would be very helpful to support also error, so the message of GitLabApiException is filled with the error message.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions