when run in website,error:Run failed: UNSTRUCTURED_API_URL and UNSTRUCTURED_API_KEY must be set #12478

Closed
opened 2026-02-21 19:07:36 -05:00 by yindo · 2 comments
Owner

Originally created by @Yuqi2347 on GitHub (Apr 2, 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

latest

Cloud or Self Hosted

Cloud

Steps to reproduce

Run failed: UNSTRUCTURED_API_URL and UNSTRUCTURED_API_KEY must be set

✔️ Expected Behavior

No response

Actual Behavior

No response

Originally created by @Yuqi2347 on GitHub (Apr 2, 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 latest ### Cloud or Self Hosted Cloud ### Steps to reproduce Run failed: UNSTRUCTURED_API_URL and UNSTRUCTURED_API_KEY must be set ### ✔️ Expected Behavior _No response_ ### ❌ Actual Behavior _No response_
yindo closed this issue 2026-02-21 19:07:36 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Apr 2, 2025):

To resolve the error "Run failed: UNSTRUCTURED_API_URL and UNSTRUCTURED_API_KEY must be set," you need to set the UNSTRUCTURED_API_URL and UNSTRUCTURED_API_KEY environment variables in your application's configuration. These variables are necessary for interacting with an unstructured data API. You can find these variables in the .env.example file:

UNSTRUCTURED_API_URL=
UNSTRUCTURED_API_KEY=

Make sure to provide appropriate values for these variables in your environment configuration file or directly in the environment where the application is running. This setup is crucial for the application to function correctly, especially when extracting text from DOC files [1][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 (Apr 2, 2025): <!-- Answer --> To resolve the error "Run failed: UNSTRUCTURED_API_URL and UNSTRUCTURED_API_KEY must be set," you need to set the `UNSTRUCTURED_API_URL` and `UNSTRUCTURED_API_KEY` environment variables in your application's configuration. These variables are necessary for interacting with an unstructured data API. You can find these variables in the `.env.example` file: ```plaintext UNSTRUCTURED_API_URL= UNSTRUCTURED_API_KEY= ``` Make sure to provide appropriate values for these variables in your environment configuration file or directly in the environment where the application is running. This setup is crucial for the application to function correctly, especially when extracting text from DOC files <sup>[[1]](https://github.com/langgenius/dify/blob/main/api/.env.example)</sup><sup>[[2]](https://github.com/langgenius/dify/blob/main/api/core/workflow/nodes/document_extractor/node.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/1a8a7190-3624-462e-99fc-e34f5f3a4734?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/1a8a7190-3624-462e-99fc-e34f5f3a4734?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/1a8a7190-3624-462e-99fc-e34f5f3a4734?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/1a8a7190-3624-462e-99fc-e34f5f3a4734?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/1a8a7190-3624-462e-99fc-e34f5f3a4734?feedback_type=hallucination) | [Bug Report](https://app.dosu.dev/response-feedback/1a8a7190-3624-462e-99fc-e34f5f3a4734?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/1a8a7190-3624-462e-99fc-e34f5f3a4734?feedback_type=other)</sup>
Author
Owner

@Pineouyang commented on GitHub (Apr 28, 2025):

@dosu I have the same problem, some users can open it, some users can not. Version 1.3.0

@Pineouyang commented on GitHub (Apr 28, 2025): @dosu I have the same problem, some users can open it, some users can not. Version 1.3.0
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#12478