fix: migrate API client to REST endpoints - #45
Conversation
The CLI calls /trpc/ endpoints but the server only responds on /api/ REST endpoints Fixes Dokploy#39
|
Independent validation ✅ Checked out this branch and ran it against a live Dokploy server (v0.29.x) with a real API key. On
The REST migration is the correct root-cause fix: current Dokploy servers expose these procedures under The |
|
Independent verification against a live Dokploy v0.29.13 panel using So the breakage is every parameterized read, not just Raw requests isolate the cause — same procedure, three shapes: Two details that support this PR's direction:
So dropping Scope caveat on my end: I verified the GET side live. I did not exercise the POST side against a real server (that panel is production), so |
Summary
/trpctransport to Dokploy's REST endpoints under/apiRoot cause
The generated commands call
apiGetandapiPost, but those helpers still used tRPC URLs and payload envelopes. Current Dokploy servers expose these procedures through REST endpoints, causing parameterized commands such asproject oneto fail with HTTP 400.This incorporates and preserves the original commits from #40 by @OskarWiedeweg, then adds encoded query handling and regression tests.
Fixes #39.
Validation
project alland parameterizedproject oneagainst a live Dokploy instance