Replies: 1 comment 2 replies
-
|
The /v1/version endpoint does not exist in Dify; the correct endpoint for version info is /v1/ (with a trailing slash). Try accessing http://localhost:5001/v1/—you should get a JSON response with API and server version info instead of a 404 error. See implementation For your setup (Docker backend, local frontend), make sure your environment variables are correct:
If you still get 404s or HTML responses, check for duplicate paths in your API URLs (e.g., don't include /console/api in both CONSOLE_API_URL and in the frontend config), and review your backend logs for clues. If you want more targeted help, share your current .env settings and any error logs. To reply, just mention @dosu. How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Self Checks
Content
Hi Dify Team, I am trying to run Dify (version 1.11.2) for development on Windows using Docker for the backend and local pnpm run dev for the frontend.
The issue: > My containers are running, but when I access http://localhost:5001/v1/version, I get a "Not Found" error from the server. Consequently, the frontend is failing with "Failed to fetch plan info" and a JSON parsing error because it's receiving HTML instead of JSON.
My setup:
Docker Desktop with WSL2 (Windows 11).
Middleware and API/Worker are running via Docker.
Frontend is running locally via pnpm.
NEXT_PUBLIC_API_PREFIX is set to http://localhost:5001/v1 in .env.local.
Could you please advise why the API container is reachable but returns a 404 for standard v1 endpoints? Is there a specific configuration for CONSOLE_API_URL or SERVICE_API_URL required when mixing Docker backend with local frontend?
Beta Was this translation helpful? Give feedback.
All reactions