notion page type not supported #7103

Closed
opened 2026-02-21 18:18:57 -05:00 by yindo · 2 comments
Owner

Originally created by @xy3xy3 on GitHub (Dec 8, 2024).

Originally assigned to: @JohnJyong, @crazywoola on GitHub.

Self Checks

  • This is only for bug report, if you would like to ask a question, please head to Discussions.
  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

0.13.1

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

I added a page that only qa chunk in notion.
image
Then,added in the database.
image
It was added successfully.
image
However,when I click the segments set, it reported this bug:

{
    "code": "indexing_estimate_error",
    "message": "notion page type not supported",
    "status": 500
}

image

✔️ Expected Behavior

See the chunks.

Actual Behavior

{
"code": "indexing_estimate_error",
"message": "notion page type not supported",
"status": 500
}

Originally created by @xy3xy3 on GitHub (Dec 8, 2024). Originally assigned to: @JohnJyong, @crazywoola on GitHub. ### Self Checks - [X] This is only for bug report, if you would like to ask a question, please head to [Discussions](https://github.com/langgenius/dify/discussions/categories/general). - [X] I have searched for existing issues [search for existing issues](https://github.com/langgenius/dify/issues), including closed ones. - [X] I confirm that I am using English to submit this report (我已阅读并同意 [Language Policy](https://github.com/langgenius/dify/issues/1542)). - [X] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:) - [X] Please do not modify this template :) and fill in all the required fields. ### Dify version 0.13.1 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce I added a page that only qa chunk in notion. ![image](https://github.com/user-attachments/assets/3560ac44-66ff-4145-bcb6-81b20b419b8e) Then,added in the database. ![image](https://github.com/user-attachments/assets/1c3cbc04-7bfc-479b-b32d-618f3632c13a) It was added successfully. ![image](https://github.com/user-attachments/assets/e834a9e8-2d1d-4098-aca2-034b08f5d9bf) However,when I click the `segments set`, it reported this bug: ``` { "code": "indexing_estimate_error", "message": "notion page type not supported", "status": 500 } ``` ![image](https://github.com/user-attachments/assets/f263c5dd-548d-4c80-a609-9a032fdf48fc) ### ✔️ Expected Behavior See the chunks. ### ❌ Actual Behavior { "code": "indexing_estimate_error", "message": "notion page type not supported", "status": 500 }
yindo added the 🐞 bug label 2026-02-21 18:18:57 -05:00
yindo closed this issue 2026-02-21 18:18:57 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Dec 8, 2024):

The error "notion page type not supported" occurs because the notion_page_type provided is neither "database" nor "page". The NotionExtractor class in the Dify code checks the notion_page_type and raises a ValueError if it is not one of these two supported types. To resolve this issue, ensure that the notion_page_type is correctly set to either "database" or "page" when initializing the NotionExtractor [1].

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other

@dosubot[bot] commented on GitHub (Dec 8, 2024): <!-- Answer --> The error "notion page type not supported" occurs because the `notion_page_type` provided is neither "database" nor "page". The `NotionExtractor` class in the Dify code checks the `notion_page_type` and raises a `ValueError` if it is not one of these two supported types. To resolve this issue, ensure that the `notion_page_type` is correctly set to either "database" or "page" when initializing the `NotionExtractor` <sup>[[1]](https://github.com/langgenius/dify/blob/main/api/core/rag/extractor/notion_extractor.py)</sup>. <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.* --- <sup>Help Dosu learn! Give it feedback: [Great Response](https://app.dosu.dev/response-feedback/e58e955a-bc0e-49c5-ba56-aa7db082a68c?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/e58e955a-bc0e-49c5-ba56-aa7db082a68c?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/e58e955a-bc0e-49c5-ba56-aa7db082a68c?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/e58e955a-bc0e-49c5-ba56-aa7db082a68c?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/e58e955a-bc0e-49c5-ba56-aa7db082a68c?feedback_type=hallucination) | [Other](https://app.dosu.dev/response-feedback/e58e955a-bc0e-49c5-ba56-aa7db082a68c?feedback_type=other)</sup>
Author
Owner

@xy3xy3 commented on GitHub (Dec 11, 2024):

This is beacause my page was wiki not the database.Even though these pages looks same in notion.

@xy3xy3 commented on GitHub (Dec 11, 2024): This is beacause my page was wiki not the database.Even though these pages looks same in notion.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#7103