Skip to content
This repository was archived by the owner on Mar 30, 2026. It is now read-only.
This repository was archived by the owner on Mar 30, 2026. It is now read-only.

IndexError: list index out #2

Description

@diogosimao
Traceback (most recent call last):
  File "/usr/local/bin/notion-docs-sync", line 33, in <module>
    sys.exit(load_entry_point('notion-docs-sync', 'console_scripts', 'notion-docs-sync')())
  File "/app/notion_docs_sync/__init__.py", line 327, in main
    client = NotionClient(token_v2=token)
  File "/usr/local/lib/python3.8/site-packages/notion/client.py", line 68, in __init__
    self._update_user_info()
  File "/usr/local/lib/python3.8/site-packages/notion/client.py", line 77, in _update_user_info
    self.current_space = self.get_space(list(records["space"].keys())[0])
IndexError: list index out

I have no idea where it came from... if you need more info let me know!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions