Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

使用notion_access_token时部署失败 #2424

Open
nowscott opened this issue May 17, 2024 · 0 comments
Open

使用notion_access_token时部署失败 #2424

nowscott opened this issue May 17, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@nowscott
Copy link

nowscott commented May 17, 2024

描述bug
使用notion_access_token时部署失败
报错信息:

[默认主题] /vercel/path0/themes/simple
--
19:35:23.343 | info  - Compiled successfully
19:35:23.352 | info  - Collecting page data...
19:35:24.763 | [Fetching Data] 69ef3ceeea1b47b5bcc01e1df9fd1e09 slug-paths
19:35:24.765 | [API-->>请求] from:slug-paths id:69ef3ceeea1b47b5bcc01e1df9fd1e09
19:35:24.815 | [Fetching Data] 69ef3ceeea1b47b5bcc01e1df9fd1e09 slug-paths
19:35:24.816 | [API-->>请求] from:slug-paths id:69ef3ceeea1b47b5bcc01e1df9fd1e09
19:35:24.831 | [Fetching Data] 69ef3ceeea1b47b5bcc01e1df9fd1e09 category-paths
19:35:24.831 | [Fetching Data] 69ef3ceeea1b47b5bcc01e1df9fd1e09 slug-paths
19:35:24.832 | [API-->>请求] from:slug-paths id:69ef3ceeea1b47b5bcc01e1df9fd1e09
19:35:24.832 | [API-->>请求] from:category-paths id:69ef3ceeea1b47b5bcc01e1df9fd1e09
19:35:25.290 | [API<<--异常]: HTTPError: Response code 401 (Unauthorized)

期望的正常结果
成功部署

复现步骤
我在vercel填写环境变量notion_access_token,之后把notion页面的分享到网络关闭,然后重新部署,就失败了
我现在在vercel的环境变量只剩下一个notion_page_id和token那个了,然后现在的情况是无论是否分享都会部署失败。
现在我把token那个环境变量删掉了才可以正确部署,但只是可以部署了,中间也有报错
报错信息:

[RSS订阅] 生成/rss/feed.xml
--
19:55:11.599 | [API-->>请求] from:rss-content id:undefined
19:55:11.601 | [API<<--异常]: Error: invalid notion pageId "undefined"
19:55:11.601 | at E.getPageRaw (file:///vercel/path0/node_modules/notion-client/build/index.js:1:2823)
19:55:11.602 | at E.getPage (file:///vercel/path0/node_modules/notion-client/build/index.js:1:527)
19:55:11.602 | at getPageWithRetry (/vercel/path0/.next/server/chunks/40663.js:1392:40)
19:55:11.602 | at getPage (/vercel/path0/.next/server/chunks/40663.js:1371:23)
19:55:11.602 | at async createFeedContent (/vercel/path0/.next/server/pages/index.js:83:22)
19:55:11.602 | at async generateRss (/vercel/path0/.next/server/pages/index.js:129:22)
19:55:11.617 | [RSS订阅] 生成/rss/feed.xml
19:55:11.619 | [API-->>请求] from:rss-content id:undefined
19:55:11.620 | [API<<--异常]: Error: invalid notion pageId "undefined"
19:55:11.620 | at E.getPageRaw (file:///vercel/path0/node_modules/notion-client/build/index.js:1:2823)
19:55:11.621 | at E.getPage (file:///vercel/path0/node_modules/notion-client/build/index.js:1:527)
19:55:11.621 | at getPageWithRetry (/vercel/path0/.next/server/chunks/40663.js:1392:40)
19:55:11.621 | at getPage (/vercel/path0/.next/server/chunks/40663.js:1371:23)
19:55:11.621 | at async createFeedContent (/vercel/path0/.next/server/pages/index.js:83:22)
19:55:11.621 | at async generateRss (/vercel/path0/.next/server/pages/index.js:129:22)
19:55:11.660 | Warning: data for page "/search" is 159 kB which exceeds the threshold of 128 kB, this amount of data can reduce performance.

环境

最新的notionnext版本,vercel,

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

@nowscott nowscott added the bug Something isn't working label May 17, 2024
@nowscott nowscott reopened this May 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants