Cannot add Notion pages to the knowledge base
Self Checks
- [x] This is only for bug report, if you would like to ask a question, please head to Discussions.
- [x] I have searched for existing issues search for existing issues, including closed ones.
- [x] I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
- [x] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
- [x] Please do not modify this template :) and fill in all the required fields.
Dify version
1.0
Cloud or Self Hosted
Cloud
Steps to reproduce
I used the 1.0 version of the official website, and chose to synchronize documents from Notion when creating the knowledge base. When I finished creating it, if I clicked the "Add Page" button to add a new document created by Notion again, the page would show that I was not bound to Notion and prompt an error. This is obviously a BUG, and it has existed for more than a week.
✔️ Expected Behavior
Avoid errors and add new Notion documents normally
❌ Actual Behavior
Unable to add Notion document
I found some similar threads that might be relevant to your issue:
-
Knowledge from notion, when add pages error - This discussion is unsolved and was last updated on March 6, 2025 [1].
-
Can't connect to Notion - This discussion is also unsolved and was last updated on August 1, 2024 [2].
Additionally, there was a closed issue titled "[Cloud] Missing added pages when trying to add a new page to Knowledge Base with Notion integration](https://github.com/langgenius/dify/issues/4921)" which was resolved by a pull request that fixed the addition of Notion pages [3].
The suggested solution for a similar issue involved modifying the SQLAlchemy query to use session.scalars() instead of accessing model attributes directly from a Row object. This change resolved a 500 error without requiring any environment configuration changes [4].
You might want to check if the solution from the closed issue applies to your situation, especially if the error is related to SQLAlchemy query handling.
To continue talking to Dosu, mention @dosu.
Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other
I have the same problem @dosu
我也存在同样的问题
I have the same problem All environment variables are set
https://github.com/user-attachments/assets/cc73d9e3-96df-40dd-8a52-4460c04736f9