You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Getting "Request failed with status code 400" on every project or app request #39
Same here, 400 on every project/app request. Looks like the CLI calls /trpc/ endpoints but the server only responds on /api/ REST endpoints. Probably a mismatch between the shipped dist and the server version.
Affects every apiGet command with arguments: *.one, *.byProjectId, *.byApplicationId, *.byComposeId, *.allByType, etc. — basically all single-item / filtered reads.
I'm trying Dokploy for the first time and spent over an hour troubleshooting this before finding this thread. Huge thanks to @sentydeploy for summarizing the root cause so clearly. I would love to see a fix pushed for this soon!
Without sentydeploy's fix, the CLI has very limited application. Most of application, deployment, docker, compose, and other commands are broken. This prevents interaction with the backend without having to use GUI or building custom tooling around the API. @jcdang@hamidzr please take a look.
Reacted by ralphwest1, Roman Ryzhikov and Ben Josua
Hi! Is there an ETA for a new CLI release that includes this fix? This issue is currently blocking some of our automated CI/CD workflows, so having an official build would be a huge help. We're compiling from source as a temporary workaround, but we'd love to get back to an official release whenever it's ready. Thanks for your work on this!
Activity
marijnbent commentedon Apr 23, 2026
same
Glowvan commentedon Apr 23, 2026
Same here, 400 on every project/app request. Looks like the CLI calls /trpc/ endpoints but the server only responds on /api/ REST endpoints. Probably a mismatch between the shipped dist and the server version.
fix: remove trcp path prefix
sentydeploy commentedon May 13, 2026
Confirming this is still broken in
@dokploy/cli@0.29.4against a fresh Dokployv0.29.4server.Root cause
apiGetinsrc/client.tssends raw input, but the tRPC v10 backend expects the transformer wrapper{json: ...}. Compare withapiPostin the same file:Server confirms
Suggested fix (1 line)
export async function apiGet(endpoint, params) { const client = createClient(); const query = params - ? `?input=${encodeURIComponent(JSON.stringify(params))}` + ? `?input=${encodeURIComponent(JSON.stringify({ json: params }))}` : ""; const response = await client.get(`/trpc/${endpoint}${query}`); return response.data?.result?.data?.json ?? response.data; }Scope
Affects every
apiGetcommand with arguments:*.one,*.byProjectId,*.byApplicationId,*.byComposeId,*.allByType, etc. — basically all single-item / filtered reads.Unaffected:
apiPostcommands (write ops like*.create,*.update,*.deploy) — already wrap correctly.apiGetcommands without params (project.all,application.searchwith no filters) — no input sent, so no wrap needed.Happy to send a PR if maintainers prefer.
ralphwest1 commentedon May 20, 2026
I'm trying Dokploy for the first time and spent over an hour troubleshooting this before finding this thread. Huge thanks to @sentydeploy for summarizing the root cause so clearly. I would love to see a fix pushed for this soon!
zhom commentedon May 24, 2026
Without sentydeploy's fix, the CLI has very limited application. Most of application, deployment, docker, compose, and other commands are broken. This prevents interaction with the backend without having to use GUI or building custom tooling around the API. @jcdang @hamidzr please take a look.
jaredmcqueen commentedon Jul 17, 2026
Hi! Is there an ETA for a new CLI release that includes this fix? This issue is currently blocking some of our automated CI/CD workflows, so having an official build would be a huge help. We're compiling from source as a temporary workaround, but we'd love to get back to an official release whenever it's ready. Thanks for your work on this!
@Siumauricio
refactor(cli): migrate to Bun and target the REST API