-
Notifications
You must be signed in to change notification settings - Fork 34
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
TypeError: 'NoneType' object is not subscriptable #327
Comments
Hmm... this is tricky to debug. It looks like you're getting a different response from the Looker API than we expected. Are you comfortable modifying the source code to log out more details so we can see what's going on? Here's how I would do it.
# -- start of new logging code
try:
content_id = content[content_type]["folder"]["id"]
except TypeError:
logger.info(content)
raise
# -- end of new code
# If exclude_personal isn't specified, personal_folders list is empty
if content[content_type]["folder"]["id"] in self.personal_folders:
continue
else:
self._handle_content_result(content, content_type) If you re-run, you should see the part of the Looker API response that's causing the error logged out right before it fails. Could you include that in your response? |
Hi @joshtemple, The issue was that a deleted dashboard was still connected to a paused alert. Removing this alert solved the problem. This is the log:
|
Thanks @tobiasrummelsberger! We'll make a fix to account for this type of error. |
When running the Content Validation spectacles returns the following error after 10 to 15 seconds:
The text was updated successfully, but these errors were encountered: