Skip to content

没法运行,显示读取 RSS 失败 #285

Description

@Dgnic

几乎有一年时间没法正常使用这个脚本,陆陆续续研究了好几次直到今天才发现原来是 Notion 修改了数据库 ID,可算找到了症结。

(附上作者在指南里新写的内容,可能能帮助到其他朋友)

database ID 在哪里 (2025.9.12 之后)
因为 Notion SDK 更新 @notionhq/client@5.0.0,database 的定义变了,Notion 官方的意思是一个 database 里可以有多种 data source,database 是 data source 的 parent。但我们这里用的 table ID 就是需要改成 data_source_id。 如果你在 2025.9.12 之后 fork 或者同步了我的代码,亦或者你自己在自己仓库里更新了依赖项,需要重新设置 database id secrets 或者 env 变量。

不再从 Notion 页面的 URL 上复制,而是需要在 Notion 页面上的表格的右上方点开设置项里寻找 “Copy data source ID” 后填入。

但现在换成了正确 ID ,又遇到了新情况,显示 RSS 无法读取,是哪里出现了问题?
完整错误提示如下:

Error: Failed to parse RSS url: Status code 403
at ClientRequest. (node_modules/rss-parser/lib/parser.js:88:25)
at Object.onceWrapper (node:events:631:26)
at ClientRequest.emit (node:events:509:28)
at HTTPParser.parserOnIncomingClient (node:_http_client:798:27)
at HTTPParser.parserOnHeadersComplete (node:_http_common:125:17)
at TLSSocket.socketOnData (node:_http_client:633:22)
at TLSSocket.emit (node:events:509:28)
at addChunk (node:internal/streams/readable:563:12)
at readableAddChunkPushByteMode (node:internal/streams/readable:514:3)
at Readable.push (node:internal/streams/readable:394:5)
Error: Process completed with exit code 1.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions