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

KeyError: 'apiHost' #14

Open
krsecurity opened this issue Jan 6, 2022 · 0 comments · May be fixed by #17
Open

KeyError: 'apiHost' #14

krsecurity opened this issue Jan 6, 2022 · 0 comments · May be fixed by #17

Comments

@krsecurity
Copy link

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

@brianrohllf brianrohllf linked a pull request Jun 2, 2023 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant