Got a dify 404 for requesting a published workflow #28158
Replies: 10 comments 20 replies
-
|
The 404 error is likely caused by how your two-layer Nginx setup handles the For the Nginx config: the external (gateway) Nginx should rewrite URLs to strip the Checklist:
If you still see 404s, double-check that the frontend was rebuilt with the correct basePath and that your Nginx proxy is rewriting and forwarding requests as described. To reply, just mention @dosu. How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other |
Beta Was this translation helpful? Give feedback.
-
|
I have already followed the bot's advise. According to the logs of dify nginx, the url seems to be right: /chat/LP3XqviF1JFORUnT. However the dify nginx seems can't handle this right url. The same thing worked on my own machine: the dify nginx also got a '/chat/xxxxxxxxxxx' url and can work with code 200. |
Beta Was this translation helpful? Give feedback.
-
|
I am trying to request the published workflow in the local environment where Dify is actually running:
So I think it's not the problem of the 2 layer nginx. |
Beta Was this translation helpful? Give feedback.
-
|
In fact I did not find a copy icon: |
Beta Was this translation helpful? Give feedback.
-
|
I found that the published agent can be shown in the workflows table. |
Beta Was this translation helpful? Give feedback.
-
|
I found that the published agent can be shown in the workflows table. However I still got 404 in the nginx log when requesting from url, just like my problem in the beginngin:
Maybe the public-facing ID in the URL is wrong. How can I check it? |
Beta Was this translation helpful? Give feedback.
-
|
How to check which public IDs are valid? |
Beta Was this translation helpful? Give feedback.
-
|
I regenerated the public url, but still got 404. |
Beta Was this translation helpful? Give feedback.
-
|
Is it possible that a wrong environment variable in my .env is causing this 404 error?@dosu. |
Beta Was this translation helpful? Give feedback.
-
|
I can chat with the workflow through 'open in explore' and 'access API reference'. However got 404 for 'run app'. The Dify generated app url is http://10.142.157.36:8080/dify/dify/chat/XKtEZpHYfSjvf1Mx. However I think it should be http://10.142.157.36:8080/dify/chat/XKtEZpHYfSjvf1Mx. Both of them got 404 in the dify nginx logs. |
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
-
Self Checks
Content
I deployed Dify through a two-layer Nginx setup and published a workflow app. The app‘s url is http://10.xxx.157.36:8080/dify/chat/LP3XqviF1JFORUnT. The prefix 'http://10.xxx.157.36:8080/dify' is for the first nginx layer to forwrad to the dify nginx.
However I checked the logs of dify nginx. It reported:
Beta Was this translation helpful? Give feedback.
All reactions