notionのdatabaseidが正しくセットされていてもデータベースでエラーになる。
エラー内容
@notionhq/client warn: request fail {
code: 'object_not_found',
message: 'Could not find database with ID: DATABASE_ID. Make sure the relevant pages and databases are shared with your integration.'
}
/yourprojectpath/node_modules/@notionhq/client/build/src/errors.js:162
return new APIResponseError({
^
APIResponseError: Could not find database with ID: DATABASE_ID. Make sure the relevant pages and databases are shared with your integration.
at buildRequestError (/yourprojectpath/node_modules/@notionhq/client/build/src/errors.js:162:16)
at Client.request (/yourprojectpath/node_modules/@notionhq/client/build/src/Client.js:347:54)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async main (/yourprojectpath/create.js:76:3) {
code: 'object_not_found',
status: 404,
body: '{"object":"error","status":404,"code":"object_not_found","message":"Could not find database with ID: DATABASE_ID. Make sure the relevant pages and databases are shared with your integration."}'
}