[
https://issues.apache.org/jira/browse/IGNITE-20171?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Vyacheslav Koptilin updated IGNITE-20171:
-----------------------------------------
Labels: ignite-3 (was: )
> 'Unknown error' in case of empty Problem JSON in error rest response
> --------------------------------------------------------------------
>
> Key: IGNITE-20171
> URL: https://issues.apache.org/jira/browse/IGNITE-20171
> Project: Ignite
> Issue Type: Bug
> Components: cli
> Affects Versions: 3.0.0-beta1
> Reporter: Dmitry Baranov
> Assignee: Dmitry Baranov
> Priority: Major
> Labels: ignite-3
> Time Spent: 10m
> Remaining Estimate: 0h
>
> If there is no Problem json in rest respone on some error, CLI interface
> shows message like
> {{Unknown error}}
> {{argument "content" is null}}
>
> The root cause of the issue it cli rest client. Rest client generated
> required param validation like
>
> // verify the required parameter 'roleName' is set
> if (roleName == null) {
> throw new ApiException("Missing the required parameter 'roleName' when
> calling getPrivileges(Async)");
> }
>
> in this case client send 500 error without any content (by spec Problem
> content should be)
> it cause {{Unknown error }}in CLI console
--
This message was sent by Atlassian Jira
(v8.20.10#820010)