Skip to content

Infoblox connector should handle wrong host error. #1488

@delliott90

Description

@delliott90

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions