TUI Cannot Connect
Symptoms
flowlayer-client-tuifails to connect.- connection opens then immediately fails with auth status.
/healthreturns401or403.
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
- 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/health
Expected 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-host
flowlayer-client-tui -addr 127.0.0.1:6999 -token dev-token
Status code meaning
401 Unauthorized: missingAuthorizationheader403 Forbidden: header exists but token does not match
See Remote Access and Session Token.