[ https://issues.apache.org/jira/browse/IGNITE-20171?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dmitry Baranov updated IGNITE-20171: ------------------------------------ Description: 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 was: If there is no Problem json in rest respone on some error, CLI interface shows message like {{Unknown error}} {{argument "content" is null}} > '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 > 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)