confluentinc / cli

CLI for Confluent Cloud and Confluent Platform
https://docs.confluent.io/confluent-cli/current/overview.html
Other
56 stars 10 forks source link

Handles not found errors with more suggestions #2923

Closed vsantwana closed 1 week ago

vsantwana commented 1 week ago

Release Notes

Breaking Changes

New Features

Bug Fixes

Checklist

What

Till now, for the following API calls:

Since the delete API depends on the existence check same as other commands, we haven't changed the behaviour there, just that we have added another line of suggestion to the error:

Error: Flink application "default-application-1" not found

Suggestions:
    List available Flink applications with `confluent flink application list`.
    Check that CMF is running and accessible.

In case of connectivity issues with CMF:

> go run cmd/confluent/main.go flink environment update ralo
Error: failed to update environment "ralo": Get "http://localhost:8080/cmf/api/v1/environments/ralo": dial tcp [::1]:8080: connect: connection refused

References

Test & Review

confluent-cla-assistant[bot] commented 1 week ago

:tada: All Contributor License Agreements have been signed. Ready to merge.
Please push an empty commit if you would like to re-run the checks to verify CLA status for all contributors.