vscode-notion icon indicating copy to clipboard operation
vscode-notion copied to clipboard

Couldn't load the data from API

Open achyutghosh opened this issue 3 years ago • 5 comments

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

Capture1

achyutghosh avatar Feb 12 '22 15:02 achyutghosh

So is there no way to get it to work?

arturomntl avatar Feb 21 '22 00:02 arturomntl

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.

Boardstroke avatar May 24 '22 22:05 Boardstroke

Thanks, it works for me

MatteoEleouet avatar Jul 14 '22 21:07 MatteoEleouet

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.

JQuezada0 avatar Oct 14 '22 17:10 JQuezada0

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!

SMGJ222 avatar Feb 08 '23 12:02 SMGJ222