frencojobs / vscode-notion

Browse Notion pages right inside Visual Studio Code.
https://marketplace.visualstudio.com/items?itemName=frenco.vscode-notion
MIT License
327 stars 15 forks source link

Couldn't load the data from API #17

Open achyutghosh opened 2 years ago

achyutghosh commented 2 years ago

While opening a notion page it shows the above error. I've added the image below.

Capture1

arturomntl commented 2 years ago

So is there no way to get it to work?

Boardstroke commented 2 years ago

I found a possible solution.

You can change the API url in the setting.json from "VSCodeNotion.api": "https://notion-api.frenco.dev" to VSCodeNotion: https://notion-api.splitbee.io/ then you have the access of yours notion's pages as long you have set the API token, that you can get in Inspect > Application > Cookies > https://notion.so > token_v2 directly in your own browser.

For more information about this you can access the following link https://github.com/splitbee/notion-api-worker.

I hope this can help you out.

MatteoEleouet commented 2 years ago

Thanks, it works for me

JQuezada0 commented 2 years ago

I'm getting Couldn't load the data from API. when using this api with private pages, any chance I'm missing something? I've copied the token out of the browser, and public pages work fine. It's just private pages that show this error.

SMGJ222 commented 1 year ago

I have tried to change the api-url to "VSCodeNotion: https://notion-api.splitbee.io/" and "https://notion-api.splitbee.io/" while typing the token_v2 value to "open a page" button. But it shows other errors╥﹏╥

when I use "VSCodeNotion:https://notion-api.splitbee.io/", I got "connect ECONNREFUSED 127.0.0.1:80"

when I use "https://notion-api.splitbee.io/", I got "write EPROTO 28987784:error:100000f7:SSL routines:OPENSSL_internal:WRONG_VERSION_NUMBER:../../third_party/boringssl/src/ssl/tls_record.cc:242: "

How can I fix it?? Any Help can be appreciated!