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

Generic: Improve Error Messaging in Ansible for Invalid Credentials to Avoid Crash/Backtrace #177

Open
ajithandrewj opened this issue Nov 11, 2024 · 0 comments

Comments

@ajithandrewj
Copy link

Prerequisites

  • [ No ] Have you tested the operation in the API directly?
  • [ Yes ] Do you have the latest SDK version?
  • [ Yes ] Review the compatibility matrix before opening an issue.

Describe the bug
This bug involves improving the error messaging in Ansible to prevent crashes or backtrace displays when invalid credentials are detected. Currently, when a user provides incorrect credentials, the error handling is not robust. Instead of a simple, user-friendly error message, the system displays a detailed backtrace that originates from the utils.py file in the dnacentersdk library.

The issue stems from a core file, utils.py, within the dnacentersdk library. This library is external to our current module, which means that the root cause likely falls under the SDK Team’s area of responsibility rather than our own module’s code. Our module is not directly generating this error, instead, it’s a side effect from the deeper library level, which lacks streamlined error handling for such scenarios.

Expected behavior
A clear and concise error message from dnacentersdk library is needed.

Screenshots
image

Environment (please complete the following information):

  • Cisco DNA Center Version and patch: 2.3.7.6
  • Python version: 3.9.19
  • SDK version: 2.9.3
  • OS Version: sonoma 14.6.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant