Skip to content

KeyError: 'apiHost' #14

Open
Open
@krsecurity

Description

@krsecurity

I appear to be getting a very similar error when attempting to perform a number of operations, I'm slightly able to bypass it by commenting line 74 in sophos_central_api_tenants.py but it doesn't work for all use cases, only a few.

File "C:\Users\krsecurity\Sophos\lib\site-packages\sophos_central_api_connector\sophos_central_api_tenants.py", line 74, in get_next_page
"page_url": item['apiHost']
KeyError: 'apiHost'

I get the above error when simply trying to run 'python sophos_central_main.py -a static -g alerts --days 1'.

I get similar errors when basically running any of the scripts, including --get tenants etc.

Any help at all?

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions