Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing error code when " Backend API Definition is not available for the API " #465

Closed
emmanuel-galindo opened this issue Mar 11, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@emmanuel-galindo
Copy link

APIM-CLI version

1.14.2

API-Management version

7.7.20231130

Bug description

When exporting to json,for error:
2024-03-11 20:08:22,804 [JsonAPIExporter] ERROR: Backend API Definition is not available for the API : (TEST) BusinessPartner Data API, hence use the option -useFEAPIDefinition to export API

Exit code is 0

Steps to reproduce

No response

Relevant log output

No response

@emmanuel-galindo emmanuel-galindo added the bug Something isn't working label Mar 11, 2024
@rathnapandi
Copy link
Member

Hi @emmanuel-galindo,
The api get operation can retrieve more than one APIs (except fetching based on id) and CLI tries to export everything. If one the api does not have backend api definition, it prints an error message and continues processing the next api.

We can throw an error if we are getting api based on ids. do let me know what you think?

@rathnapandi rathnapandi self-assigned this Mar 12, 2024
rathnapandi pushed a commit that referenced this issue Mar 12, 2024
@emmanuel-galindo
Copy link
Author

yup, for id it makes sense, or when the selection of apis is just 1 api ?

if not parsing stdout, i wouldn't know how to detect this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants