vzhd1701 / csv2notion

Import/Merge CSV files into Notion database
MIT License
74 stars 10 forks source link

[Bug]: Keep getting the same "CRITICAL: Provided URL links does not point to a Notion database." error #12

Closed PedroMD closed 1 year ago

PedroMD commented 1 year ago

csv2notion version

0.3.5

What OS are you using?

MacOS

OS Version / Linux distribution

12.5.1. Installed using brew.

Bug description

Hi,

I can't seem to get this work as I keep getting the same CRITICAL: Provided URL links does not point to a Notion database. error. I'm sure I'm copying the proper view link using the table options (as displayed in README's example). Did something change in the API? I'm pretty sure I'm pasting the URL correctly.

Thanks in advance!

Log excerpt

2022-09-16 00:12:32,556 [INFO    ] Validating CSV & Notion DB schema
2022-09-16 00:12:33,307 [CRITICAL] Provided URL links does not point to a Notion database.
PedroMD commented 1 year ago

Some more context:

vzhd1701 commented 1 year ago

It won't work if you don't have permission to edit the database.

PedroMD commented 1 year ago

I do have permission to edit the DB in question.

A sexta, 16/09/2022, 08:05, Vlad @.***> escreveu:

It won't work if you don't have permission to edit the database.

— Reply to this email directly, view it on GitHub https://github.com/vzhd1701/csv2notion/issues/12#issuecomment-1248997188, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACCJKNBIODYNMXVZAPB6T2LV6QL4BANCNFSM6AAAAAAQN222OU . You are receiving this because you authored the thread.Message ID: @.***>

vzhd1701 commented 1 year ago

Sorry, I must have misread your message.

Try putting URL into quotes when you pass it to csv2notion

csv2notion --token TOKEN --url "URL" test.csv
PedroMD commented 1 year ago

I did try that before as well :)

vzhd1701 commented 1 year ago

Is your link formatted like this? https://www.notion.so/35b837c0a61d44af8289d3929a82c292?v=87fd34e6cfd54f9a83992e5f3291474b

Helguera commented 1 year ago

I found out the problem only occurs if the database is inline. If I convert the inline database to page and I execute the commands again, with the same notion db link, it works.