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

Blank Page with Error When Adding Notion Configuration in Data Sources #12080

Closed
5 tasks done
SingleKey opened this issue Dec 25, 2024 · 2 comments
Closed
5 tasks done
Labels
🐞 bug Something isn't working

Comments

@SingleKey
Copy link

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

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

Hello,

When attempting to add a Notion configuration in the Data Sources section of the settings, I am redirected to a blank page. The page displays the following error message:

{
  "error": "invalid_request",
  "error_description": "query failed validation: query.client_id should be a string or `undefined`, instead was `0`.",
  "request_id": "4ce7caa0-10d3-4499-8618-39d8ddb8577e"
}

Could you please provide guidance on how to resolve this issue? Specifically, it seems that there is an issue with the client_id not being passed correctly as a string.

Thank you for your assistance.

Best regards,

✔️ Expected Behavior

My expectation is that after adding the Notion configuration, a popup window or another configuration interface should appear to guide me through the setup process.

❌ Actual Behavior

I encounter this error and the process cannot be completed.

@dosubot dosubot bot added the 🐞 bug Something isn't working label Dec 25, 2024
Copy link

dosubot bot commented Dec 25, 2024

I found a similar unsolved discussion regarding an error when adding a Notion data source in the community version of Dify [1].

The error message you're encountering indicates that the client_id is being set as 0 instead of a string. In the Dify platform, the client_id should be a string or undefined, and it is typically set in the .env file under the environment variable NOTION_CLIENT_ID [2].

Ensure that your .env file has the correct configuration for the Notion integration:

NOTION_INTEGRATION_TYPE=public
NOTION_CLIENT_SECRET=your-client-secret
NOTION_CLIENT_ID=your-client-id

Make sure that your-client-id is a valid string and not set to 0. If the issue persists, double-check the environment variable settings and ensure that they are correctly loaded into your application.

To continue talking to Dosu, mention @dosu.


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

@crazywoola
Copy link
Member

Check the settings of the notion.

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