Unable to show(to choose) authorized page #12309

Closed
opened 2026-02-21 19:06:50 -05:00 by yindo · 5 comments
Owner

Originally created by @1040942669 on GitHub (Mar 28, 2025).

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

1.1.3

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

Image

Image

✔️ Expected Behavior

A selection menu or interface is supposed to pop up and be displayed.

Actual Behavior

I have configured .env file correctly, but notion can only be connected successfully without choosing any authorized pages after clicking the button and refresh the website. There is no any interface pop up to pick the pages I want.

Originally created by @1040942669 on GitHub (Mar 28, 2025). ### 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 1.1.3 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce ![Image](https://github.com/user-attachments/assets/1b4ab782-90f1-42a9-82ac-8d870572de27) ![Image](https://github.com/user-attachments/assets/27de54d0-a510-4c4b-b73c-24bd6b5c5f9e) ### ✔️ Expected Behavior A selection menu or interface is supposed to pop up and be displayed. ### ❌ Actual Behavior I have configured .env file correctly, but notion can only be connected successfully without choosing any authorized pages after clicking the button and refresh the website. There is no any interface pop up to pick the pages I want.
yindo added the 🐞 bug🤔 cant-reproduce labels 2026-02-21 19:06:50 -05:00
yindo closed this issue 2026-02-21 19:06:50 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Mar 28, 2025):

Hello @1040942669! I'm here to help you with bug reports, answer questions, and guide you on becoming a contributor. Let's work together to resolve this issue.

I found a similar closed issue regarding Notion integration not working for the self-hosted version. The suggested solution involves setting the environment variables NOTION_CLIENT_ID and NOTION_CLIENT_SECRET to address the issue of losing ClientId. Additionally, if running locally, you should use the parameters:

  • NOTION_INTEGRATION_TYPE=internal
  • NOTION_INTERNAL_SECRET=your-secret

Ensure that you have configured the necessary connections in your document to connect to the integrations you created, as this configuration is crucial for retrieving data from Notion [1].

For a detailed setup, you can follow these steps:

  1. Create an Internal Integration in Notion: Go to the Create Integration page and create a new integration with the type set to Internal.

  2. Configure Integration Settings: Update the integration settings and copy the integration secrets.

  3. Configure Dify Environment Variables: Update the .env file in Dify with:

    NOTION_INTEGRATION_TYPE=internal
    NOTION_INTERNAL_SECRET=your-internal-secret
    
  4. Import and Sync Notion Data: Complete authentication during dataset creation or by adding a data source in settings, then import the necessary Notion pages.

These steps should help resolve the issue with the Notion integration in your self-hosted Dify setup [2].

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

@dosubot[bot] commented on GitHub (Mar 28, 2025): <!-- Greeting --> Hello @1040942669! I'm here to help you with bug reports, answer questions, and guide you on becoming a contributor. Let's work together to resolve this issue. <!-- Answer --> I found a similar closed issue regarding Notion integration not working for the self-hosted version. The suggested solution involves setting the environment variables `NOTION_CLIENT_ID` and `NOTION_CLIENT_SECRET` to address the issue of losing ClientId. Additionally, if running locally, you should use the parameters: - `NOTION_INTEGRATION_TYPE=internal` - `NOTION_INTERNAL_SECRET=your-secret` Ensure that you have configured the necessary connections in your document to connect to the integrations you created, as this configuration is crucial for retrieving data from Notion <sup>[[1]](https://github.com/langgenius/dify/issues/641)</sup>. For a detailed setup, you can follow these steps: 1. **Create an Internal Integration in Notion**: Go to the [Create Integration](https://www.notion.so/my-integrations) page and create a new integration with the type set to Internal. 2. **Configure Integration Settings**: Update the integration settings and copy the integration secrets. 3. **Configure Dify Environment Variables**: Update the `.env` file in Dify with: ```plaintext NOTION_INTEGRATION_TYPE=internal NOTION_INTERNAL_SECRET=your-internal-secret ``` 4. **Import and Sync Notion Data**: Complete authentication during dataset creation or by adding a data source in settings, then import the necessary Notion pages. These steps should help resolve the issue with the Notion integration in your self-hosted Dify setup <sup>[[2]](https://github.com/langgenius/dify-docs/blob/main/en/guides/knowledge-base/create-knowledge-and-upload-documents/import-content-data/sync-from-notion.md)</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/c2e895e9-1b29-42d6-912b-8ad955fcef6a?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/c2e895e9-1b29-42d6-912b-8ad955fcef6a?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/c2e895e9-1b29-42d6-912b-8ad955fcef6a?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/c2e895e9-1b29-42d6-912b-8ad955fcef6a?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/c2e895e9-1b29-42d6-912b-8ad955fcef6a?feedback_type=hallucination) | [Bug Report](https://app.dosu.dev/response-feedback/c2e895e9-1b29-42d6-912b-8ad955fcef6a?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/c2e895e9-1b29-42d6-912b-8ad955fcef6a?feedback_type=other)</sup>
Author
Owner

@mamazary commented on GitHub (May 8, 2025):

HI, I got the same issues that configure and sync button does nothing, after I checked in console it shows pending, and then cancelled. I've deployed into kubernetes, no logs visible using log_level info.

Image

tried to make a request to /console/api/oauth/data-source/notion

Image

it shows empty data and takes around 2m 30s

@mamazary commented on GitHub (May 8, 2025): HI, I got the same issues that configure and sync button does nothing, after I checked in console it shows pending, and then cancelled. I've deployed into kubernetes, no logs visible using log_level info. <img width="1680" alt="Image" src="https://github.com/user-attachments/assets/cb6b2917-7ab0-440a-a8be-5aaf7763c360" /> tried to make a request to <dify-domain-url>/console/api/oauth/data-source/notion <img width="1635" alt="Image" src="https://github.com/user-attachments/assets/6d645f85-ab5b-4ec8-ac8a-df3772aaaf6b" /> it shows empty data and takes around 2m 30s
Author
Owner

@dosubot[bot] commented on GitHub (May 8, 2025):

@crazywoola, the user mamazary has indicated that they are still experiencing issues with the Notion integration, specifically that the configure and sync button does nothing and they see pending requests in the console. Could you please assist them with this?

@dosubot[bot] commented on GitHub (May 8, 2025): @crazywoola, the user mamazary has indicated that they are still experiencing issues with the Notion integration, specifically that the configure and sync button does nothing and they see pending requests in the console. Could you please assist them with this?
Author
Owner

@crazywoola commented on GitHub (May 8, 2025):

Can not reproduce this in the latest main branch.

@crazywoola commented on GitHub (May 8, 2025): Can not reproduce this in the latest main branch.
Author
Owner

@alexander-steel commented on GitHub (Jun 21, 2025):

@mamazary
@1040942669
Have you found a solution to this problem?
I'm hosting and using 1.4.3
I ran into this problem.

@alexander-steel commented on GitHub (Jun 21, 2025): @mamazary @1040942669 Have you found a solution to this problem? I'm hosting and using 1.4.3 I ran into this problem.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#12309