LoginSignup
2
0

More than 1 year has passed since last update.

Could not find database with ID:DATABASE_ID. Make sure the relevant pages and databases are shared with your integration.

Last updated at Posted at 2023-02-01

notionのdatabaseidが正しくセットされていてもデータベースでエラーになる。

ここからintegrationを設定する
Journal.png

エラー内容

@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."}'
}
2
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
0