I have configured Alibaba Cloud's OSS correctly, but I just can't connect to it and can't open dify #7652

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

Originally created by @Vampxgg on GitHub (Jan 10, 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

0.15.0

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

e2a106fa-1198-4001-8f72-3ea805dcbd74
898e8905-c8ea-4e00-97fd-9b0d8173214d

✔️ Expected Behavior

No response

Actual Behavior

No response

Originally created by @Vampxgg on GitHub (Jan 10, 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 0.15.0 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce ![e2a106fa-1198-4001-8f72-3ea805dcbd74](https://github.com/user-attachments/assets/eb37b5c3-fec2-42de-b763-5d4ee0183c3e) ![898e8905-c8ea-4e00-97fd-9b0d8173214d](https://github.com/user-attachments/assets/2d3e2d0f-4b64-4662-9837-efc81c1a4015) ### ✔️ Expected Behavior _No response_ ### ❌ Actual Behavior _No response_
yindo added the 🐞 bug label 2026-02-21 18:21:39 -05:00
yindo closed this issue 2026-02-21 18:21:39 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Jan 10, 2025):

I found a similar open issue that might be relevant to your problem. The issue suggests that the error "TypeError: Failed to fetch" in service/base.ts at line 360 could be due to a network issue or incorrect fetch parameters. Here are some steps that were recommended to troubleshoot and resolve this issue:

  1. Check Network Configuration: Ensure that the backend services are running and accessible from the frontend. Verify that the URLs and ports in your environment configuration are correct.

  2. CORS Configuration: If you're running the frontend and backend on different domains or ports, ensure that CORS (Cross-Origin Resource Sharing) is properly configured. You may need to update the CORS settings in your backend to allow requests from the frontend's origin.

  3. Environment Variables: Double-check the environment variables in your configuration file. Ensure that all necessary variables for connecting to Alibaba Cloud OSS are set correctly.

  4. Backend Logs: Check the backend logs for any errors or warnings that might indicate why the fetch request is failing. This can provide more context on whether the issue is with the network or the backend service itself.

  5. Network Accessibility: Ensure that there are no firewall rules or network policies blocking the requests from the frontend to the backend.

  6. Browser Console: Look at the browser's developer console for more detailed error messages or network request details that might help diagnose the issue.

These steps might help you identify and resolve the connectivity issue with Alibaba Cloud OSS in your Dify setup [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 (Jan 10, 2025): <!-- Answer --> I found a similar open issue that might be relevant to your problem. The issue suggests that the error "TypeError: Failed to fetch" in `service/base.ts` at line 360 could be due to a network issue or incorrect fetch parameters. Here are some steps that were recommended to troubleshoot and resolve this issue: 1. **Check Network Configuration**: Ensure that the backend services are running and accessible from the frontend. Verify that the URLs and ports in your environment configuration are correct. 2. **CORS Configuration**: If you're running the frontend and backend on different domains or ports, ensure that CORS (Cross-Origin Resource Sharing) is properly configured. You may need to update the CORS settings in your backend to allow requests from the frontend's origin. 3. **Environment Variables**: Double-check the environment variables in your configuration file. Ensure that all necessary variables for connecting to Alibaba Cloud OSS are set correctly. 4. **Backend Logs**: Check the backend logs for any errors or warnings that might indicate why the fetch request is failing. This can provide more context on whether the issue is with the network or the backend service itself. 5. **Network Accessibility**: Ensure that there are no firewall rules or network policies blocking the requests from the frontend to the backend. 6. **Browser Console**: Look at the browser's developer console for more detailed error messages or network request details that might help diagnose the issue. These steps might help you identify and resolve the connectivity issue with Alibaba Cloud OSS in your Dify setup <sup>[[1]](https://github.com/langgenius/dify/issues/11442)</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/c1475b93-cffb-4063-b150-5a7d58d36a42?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/c1475b93-cffb-4063-b150-5a7d58d36a42?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/c1475b93-cffb-4063-b150-5a7d58d36a42?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/c1475b93-cffb-4063-b150-5a7d58d36a42?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/c1475b93-cffb-4063-b150-5a7d58d36a42?feedback_type=hallucination) | [Other](https://app.dosu.dev/response-feedback/c1475b93-cffb-4063-b150-5a7d58d36a42?feedback_type=other)</sup>
Author
Owner

@crazywoola commented on GitHub (Jan 10, 2025):

For questions please use discussion instead.

@crazywoola commented on GitHub (Jan 10, 2025): For questions please use discussion instead.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#7652