question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

NotionAPI collectionQuery error Response code 400 (Bad Request)

See original GitHub issue

When i deploy the blog ,i got the wrong info

18:44:27.890 | NotionAPI collectionQuery error Response code 400 (Bad Request)
-- | --
18:44:27.892 | > Build error occurred
18:44:27.894 | TypeError: Cannot convert undefined or null to object
18:44:27.895 | at Function.values (<anonymous>)
18:44:27.895 | at getAllPageIds (/vercel/path0/.next/server/chunks/272.js:37:12)
18:44:27.896 | at getAllPosts (/vercel/path0/.next/server/chunks/272.js:186:21)
18:44:27.896 | at processTicksAndRejections (internal/process/task_queues.js:95:5)
18:44:27.896 | at async getStaticPaths (/vercel/path0/.next/server/pages/tag/[tag].js:54:17)
18:44:27.896 | at async buildStaticPaths (/vercel/path0/node_modules/next/dist/build/utils.js:472:31)
18:44:27.897 | at async /vercel/path0/node_modules/next/dist/build/utils.js:615:119
18:44:27.897 | at async Span.traceAsyncFn (/vercel/path0/node_modules/next/dist/telemetry/trace/trace.js:60:20) {
18:44:27.897 | type: 'TypeError'
18:44:27.897 | }
18:44:27.954 | error Command failed with exit code 1.
18:44:27.955 | info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
18:44:27.985 | Error: Command "yarn run build" exited with 1

I think I have set the env correctly,it still not work image

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:6

github_iconTop GitHub Comments

1reaction
p0wer0ffcommented, Oct 9, 2021

The same issues…

It’s due the notion api change. Updating notion-client to the latest version solves the problem. You can run yarn upgrade notion-utils@latest to manually fix it or wait for the repo owner to update.

The same issues… But I have updating notion-client to the latest version which is 8.0.0. Still not working…

You may get the wrong version. The latest version of notion-client is 4.9.7 (https://www.npmjs.com/package/notion-client). Yesterday I updated notion-client to 4.9.5 and It already worked.

thank you ! update the notion-client ,it works!

0reactions
yeyouchuancommented, Oct 8, 2021

The same issues…

It’s due the notion api change. Updating notion-client to the latest version solves the problem. You can run yarn upgrade notion-utils@latest to manually fix it or wait for the repo owner to update.

The same issues… But I have updating notion-client to the latest version which is 8.0.0. Still not working…

You may get the wrong version. The latest version of notion-client is 4.9.7 (https://www.npmjs.com/package/notion-client). Yesterday I updated notion-client to 4.9.5 and It already worked.

Thank you very much

Read more comments on GitHub >

github_iconTop Results From Across the Web

NotionAPI collectionQuery error Response code 400 (Bad ...
When deploying on Vercel. Same error happened for an already deployed site on Vercel using Nobelium, the configuration for that site worked ...
Read more >
Error 400 when connecting Notion API to Power BI
I'm trying to connect the Notion API ...
Read more >
notion api는 예고없이 변경되는 것으로 악명이 높다. ...
NotionAPI collectionQuery error Response code 400 (Bad Request) - githubmemory.
Read more >
Solved: Error with Post request to Notion API
Solved: Trying to make a post request to Notion to create a new page. Receiving an Error 400 Bad Request and can't find...
Read more >
解决Notion api 更新之后Nobelium 无法同步问题
「NotionAPI collectionQuery error Response code 400 (Bad Request) #178」. Perhaps that might be linked to this#176 (comment).
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found