TUI Cannot Connect
Symptoms
Section titled “Symptoms”flowlayer-client-tuifails to connect.- connection opens then immediately fails with auth status.
/healthreturns401or403.
Likely causes
Section titled “Likely causes”- server Session API is disabled (no
-sand nosession.bind) - wrong
-addrvalue - wrong
-tokenvalue - using a server-only config in TUI
-configmode with nosession.addr - remote host is not reachable from your client machine
Resolution
Section titled “Resolution”- Confirm server session mode is enabled:
flowlayer-server -c ./flowlayer.jsonc -s 127.0.0.1:6999 -token dev-token- Validate health from the same machine as the TUI:
curl -H "Authorization: Bearer dev-token" http://127.0.0.1:6999/healthExpected response:
{"ok": true}- Connect with explicit parameters first:
flowlayer-client-tui -addr 127.0.0.1:6999 -token dev-token-
If you use
-config, ensure the file containssession.addrfor the client. -
For remote servers, tunnel first, then connect locally:
ssh -N -L 6999:127.0.0.1:6999 dev@remote-hostflowlayer-client-tui -addr 127.0.0.1:6999 -token dev-tokenStatus code meaning
Section titled “Status code meaning”401 Unauthorized: missingAuthorizationheader403 Forbidden: header exists but token does not match
See Client / TUI for connection modes and Server for Session API bind and token behavior.