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

Infoblox connector should handle wrong host error. #1488

Open
delliott90 opened this issue May 17, 2023 · 0 comments
Open

Infoblox connector should handle wrong host error. #1488

delliott90 opened this issue May 17, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@delliott90
Copy link
Collaborator

Describe the bug
When provided with wrong host or token, Infoblox thorws the full stack of the error and does not provide error code.

Reproduce

python main.py transmit infoblox "{"host":"abc.infoblox"}" '{ "auth": { "token": "NotProvided" } }' ping
Solution
Wrap the error in ErrorResponder.fill_error method and does not raise Nothing, or do not send self.logger.error() with exc_info=True.


https://github.com/opencybersecurityalliance/stix-shifter/blob/develop/stix_shifter_modules/infoblox/stix_transmission/ping_connector.py#L51

@mdazam1942 mdazam1942 added the bug Something isn't working label Aug 30, 2023
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