adobe / aio-cli-plugin-aem-rde

Apache License 2.0
4 stars 13 forks source link

Plugins handles status code insufficiently #80

Closed RemoLiechti closed 5 months ago

RemoLiechti commented 5 months ago

Some API endpoints return status code 404 in case an ID was not found. In example: $ aio aem rde inspect inventory foobar which then results in an API error message, which it actually is not.

› Error: [RDECLI:UNEXPECTED_API_ERROR] There was an unexpected API error code 404 with message Not Found. Please, try again later and if the error persists, report it. › Code: UNEXPECTED_API_ERROR

Check all API calls (when provided with an ID) to be handled correctly.