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

notion_gCal_IDs.append: List index out of range #9

Open
ResanChea opened this issue Jul 9, 2021 · 5 comments
Open

notion_gCal_IDs.append: List index out of range #9

ResanChea opened this issue Jul 9, 2021 · 5 comments

Comments

@ResanChea
Copy link

I just set up your script and can't figure out what's wrong from this error. May you help?

❯ python3 ./Notion-GCal-2WaySync-Public.py 

Nothing new added to GCal
Nothing new updated to GCal
Traceback (most recent call last):
  File "/home/blue/Downloads/Notion-and-Google-Calendar-2-Way-Sync/./Notion-GCal-2WaySync-Public.py", line 841, in <module>
    notion_gCal_IDs.append(result['properties'][GCalEventId_Notion_Name]['rich_text'][0]['text'])
IndexError: list index out of range
@akarri2001
Copy link
Owner

Can you try changing it to result['properties'][GCalEventId_Notion_Name]['rich_text'][0]['text']['content'] throughout the script instead and seeing if it works?

@Xx-KaixX
Copy link

Xx-KaixX commented Aug 17, 2021

I'm also having the exact same issue but it's at line 877 for me

@akarri2001
Copy link
Owner

For the line 877 error @Xx-KaixX, do you have anything on the Notion database? If not, add something that you want on your calendar, and then try it out

@Xx-KaixX
Copy link

Yeah, I'm trying to sync an event from Notion to Google Calendar and then this error is coming up

@austinvdubs
Copy link

austinvdubs commented Sep 6, 2021

@akarri2001 I'm also getting this error on line 456:

...\Notion-To-gCal-Sync\Notion-GCal-2WaySync-Public.py", line 456, in <module>
    TaskNames.append(el['properties'][Task_Notion_Name]['title'][0]['text']['content'])
IndexError: list index out of range

Any idea how to address this?


Edit: I figured it out. The issue was because I had several tasks with blank Names in Notion.

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

No branches or pull requests

4 participants