jcha0713 / astro-notion Goto Github PK
View Code? Open in Web Editor NEWHome Page: astro-notion.vercel.app
Home Page: astro-notion.vercel.app
On the vercel app on the basic setup, point 4
Go to https://heliotrope-lavender-f03.notion.site/Example-Database-a845c6d59ead4034be1b637c6381073d
and click duplicate on the upper right corner to use it as a template.
does not lead to the database and instead rerenders the vercel app page.
I cannot get the @notionhq/client
that you use to grab the data to work.
I've followed the instructions and have added the database ID, setup the connection and added some posts to the page.
database: https://www.notion.so/jsjoeio/Blog-6c79d10bf60241df8cfaf23742d30a2a?pvs=4
error:
@notionhq/client warn: request fail {
code: 'object_not_found',
message: 'Could not find database with ID: 6c79d10b-f602-41df-8cfa-f23742d30a2a. Make sure the relevant pages and databases are shared with your integration.'
}
@notionhq/client debug: failed response body {
body: '{"object":"error","status":404,"code":"object_not_found","message":"Could not find database with ID: 6c79d10b-f602-41df-8cfa-f23742d30a2a. Make sure the relevant pages and databases are shared with your integration."}'
}
APIResponseError: Could not find database with ID: 6c79d10b-f602-41df-8cfa-f23742d30a2a. Make sure the relevant pages and databases are shared with your integration.
at buildRequestError (/home/coder/speak-argentinian-spanish/node_modules/@notionhq/client/build/src/errors.js:162:16)
at Client.request (/home/coder/speak-argentinian-spanish/node_modules/@notionhq/client/build/src/Client.js:304:54)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async Module.getTableData (/node_modules/@jcha0713/astro-notion/api/getTableData.ts:36:22)
at async eval (/home/coder/speak-argentinian-spanish/src/pages/blog.astro:14:16)
at async renderPage (file:///home/coder/speak-argentinian-spanish/node_modules/astro/dist/runtime/server/render/page.js:91:30)
at async renderPage (file:///home/coder/speak-argentinian-spanish/node_modules/astro/dist/core/render/core.js:81:20)
at async renderPage (file:///home/coder/speak-argentinian-spanish/node_modules/astro/dist/core/render/dev/index.js:108:10)
at async handleRoute (file:///home/coder/speak-argentinian-spanish/node_modules/astro/dist/vite-plugin-astro-server/route.js:152:20)
at async run (file:///home/coder/speak-argentinian-spanish/node_modules/astro/dist/vite-plugin-astro-server/request.js:46:14)
at async runWithErrorHandling (file:///home/coder/speak-argentinian-spanish/node_modules/astro/dist/vite-plugin-astro-server/controller.js:65:5)
at async handleRequest (file:///home/coder/speak-argentinian-spanish/node_modules/astro/dist/vite-plugin-astro-server/request.js:40:3) {
code: 'object_not_found',
status: 404,
headers: Headers {
[Symbol(map)]: [Object: null prototype] {
date: [Array],
'content-type': [Array],
'transfer-encoding': [Array],
connection: [Array],
'set-cookie': [Array],
'content-security-policy': [Array],
'x-dns-prefetch-control': [Array],
'x-frame-options': [Array],
'strict-transport-security': [Array],
'x-download-options': [Array],
'x-content-type-options': [Array],
'x-permitted-cross-domain-policies': [Array],
'referrer-policy': [Array],
'x-xss-protection': [Array],
etag: [Array],
vary: [Array],
'cf-cache-status': [Array],
server: [Array],
'cf-ray': [Array],
'content-encoding': [Array]
}
},
body: '{"object":"error","status":404,"code":"object_not_found","message":"Could not find database with ID: 6c79d10b-f602-41df-8cfa-f23742d30a2a. Make sure the relevant pages and databases are shared with your integration."}'
}
any tips for troubleshooting this?
I am not familiar with Astro so I am unsure how to proceed with the boilerplate code to import the blog posts from my Notion Table into the index.astro
file located in src
. The Notion docs has the code for .js
not .astro
so that will not work for this use case unfortunately.
Thanks for putting this site together, it has a lot of promise!
Here is my repo of what I have so far...
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.