YA-GCal-Notion-Sync-Script
YA-GCal-Notion-Sync-Script copied to clipboard
Problem with custom Notion domain
Hi. I was trying to setup this sync but I got an error.
Error: {"object":"error","status":400,"code":"invalid_request_url","message":"Invalid request URL."}
notionFetch @ main.gs:421
deleteCancelledEvents @ main.gs:704
main @ main.gs:24
I realized the function parseNotionProperties()
is not getting DATABASE_ID
as expected (workspace-domain/database-id
instead of database-id
). I am using a custom domain with a hyphen, in case it is relevant to the regex. I manually changed the DATABASE_ID
value and it worked fine.
Do you mind giving an example of a link to a shared database? You can change up your domain and the database id a bit to anonymize it, I just want to do some testing. I thought custom domains should have been working since it was an issue with some users before and was then fixed, so it might be something specific to your case.