NotionNext icon indicating copy to clipboard operation
NotionNext copied to clipboard

Request failed with status code 406 Not Acceptable: POST https://www.notion.so/api/v3/queryCollection

Open zhaowh3613 opened this issue 3 months ago • 2 comments

描述bug 【此项必填】报错无法访问notion数据,NotionAPI collectionQuery error Request failed with status code 406 Not Acceptable: POST https://www.notion.so/api/v3/queryCollection 只显示空的博客页面,notion账户中有实际笔记,但博客页面笔记数据为空

期望的正常结果 【此项必填】数据正常显示

复现步骤 【此项必填】你的操作步骤,按此步骤理应在我的开发环境出现一样的bug。

环境

  • 【必填】NotionNext版本 4.9.0
  • 【必填】主题 hexo
  • 【必填】部署方案 vercel
  • 【可选】操作系统: [windows]
  • 【可选】浏览器 [chrome]

补充说明 【可选】与问题相关的其它说明

zhaowh3613 avatar Sep 22 '25 08:09 zhaowh3613

遇到同样问题 我参考https://docs.tangly1024.com/article/notion-next-api_base_url使用了自己的api_base_url也报错406

    NotionAPI collectionQuery error 225ecdae3c3780c3a323e0ae7a01a3e1 Request failed with status code 406 Not Acceptable: POST https://zenith-deal-8fd.notion.site/api/v3/queryCollection
HTTPError: Request failed with status code 406 Not Acceptable: POST https://zenith-deal-8fd.notion.site/api/v3/queryCollection
    at function_ (file:///vercel/path0/node_modules/ky/distribution/core/Ky.js:31:29)
    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
    at async result.<computed> [as json] (file:///vercel/path0/node_modules/ky/distribution/core/Ky.js:72:34)
    at async pMap.concurrency.concurrency (file:///vercel/path0/node_modules/notion-client/build/index.js:86:36)
    at async file:///vercel/path0/node_modules/p-map/index.js:121:20 {
  response: Response {
    status: 406,
    statusText: 'Not Acceptable',
    headers: Headers {
      date: 'Fri, 10 Oct 2025 02:42:58 GMT',
      'content-type': 'application/json; charset=utf-8',
      'content-length': '223',
      connection: 'keep-alive',

krisxia0506 avatar Oct 10 '25 03:10 krisxia0506

貌似是因为

{"errorId":"b61eba80-9bad-4947-9a01-0fd8712f788c","name":"GroupsV1NotSupportedError","debugMessage":"Groups v1 is no longer supported. Please upgrade your app to the latest version.","message":"Something went wrong. (406)"}

krisxia0506 avatar Oct 10 '25 03:10 krisxia0506