Skip to content
Discussion options

You must be logged in to vote

I encountered the same issue. The cause in my case was that the Docker host had a network proxy enabled, and this proxy configuration was inherited by the dify-api container. You can verify this by running docker compose exec api env | grep -I proxy. Ultimately, I resolved the issue by configuring the environment section for the api service in the docker-compose.yaml file:

services:
  # API service
  api:
    image: langgenius/dify-api:1.7.2
    restart: always
    environment:
      # Use the shared environment variables.
      <<: *shared-api-worker-env
      HTTP_PROXY:
      HTTPS_PROXY:
      http_proxy:
      https_proxy:

Replies: 4 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@zt-x
Comment options

@Skure1027
Comment options

Comment options

You must be logged in to vote
1 reply
@caobaoqi6040
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by zt-x
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
🤔 cant-reproduce We can not reproduce it or the information is limited
6 participants
Converted from issue

This discussion was converted from issue #21387 on June 24, 2025 01:11.