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

The title of the synced Notion document always appears as “Untitled”. #7214

Closed
5 tasks done
yusuke-ten opened this issue Aug 13, 2024 · 1 comment · Fixed by #7215
Closed
5 tasks done

The title of the synced Notion document always appears as “Untitled”. #7214

yusuke-ten opened this issue Aug 13, 2024 · 1 comment · Fixed by #7215
Labels
🐞 bug Something isn't working

Comments

@yusuke-ten
Copy link
Contributor

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.6.16

Cloud or Self Hosted

Cloud, Self Hosted (Docker), Self Hosted (Source)

Steps to reproduce

Select “Sync from Notion” in the knowledge.

The titles of all subpages are displayed as "Untitled".

image

✔️ Expected Behavior

The titles of the subpages are displayed correctly.

❌ Actual Behavior

No response

Copy link

dosubot bot commented Aug 13, 2024

@yusuke-ten Hello! I'm here to help you with any bugs, questions, or contributions you have for the Dify repository. Let me know how I can assist you!

The issue where the titles of synced Notion documents appear as "Untitled" might be related to the mapping of Notion subpage titles in the Dify interface. The PageSelector component in web/app/components/base/notion-page-selector/page-selector/index.tsx is responsible for rendering the list of Notion pages and their hierarchical structure, including the titles of the subpages [1].

To troubleshoot this issue, you can check the following:

  1. Ensure Proper Configuration: Verify that the necessary environment variables for the Notion integration are correctly set in your .env file. This includes NOTION_INTEGRATION_TYPE, NOTION_INTERNAL_SECRET, NOTION_CLIENT_SECRET, and NOTION_CLIENT_ID as applicable [2].

  2. Check for Recent Changes or Issues: There might be recent changes or known issues in the Dify repository related to the Notion API integration that could affect the retrieval of subpage titles. Reviewing the latest commits or issues in the repository might provide insights.

  3. Inspect the PageSelector Component: Ensure that the PageSelector component is correctly processing and displaying the page_name property for each Notion page. The relevant code snippet in the PageSelector component handles the rendering of the page titles [1].

If the issue persists, further investigation into the Notion API responses and how they are processed in the Dify codebase might be necessary.

To continue talking to Dosu, mention @dosu.

@dosubot dosubot bot added the 🐞 bug Something isn't working label Aug 13, 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

Successfully merging a pull request may close this issue.

1 participant