fix(remote): stop with one line when a remote server rejects the API key instead of building the stub command

This commit is contained in:
imSp4rky
2026-12-04 17:03:59 -07:00
parent 3bdca22bc7
commit 7a40b7739b
7 changed files with 180 additions and 15 deletions
+5
View File
@@ -154,6 +154,11 @@ no longer moves the API key to another name. Names you give keep your spelling a
are not repeated in the fallbacks, so unshackle tries
`auth_headers: ["Authorization", "x-secret-key"]` as `Authorization`, `x-secret-key`, `X-Api-Key`.
When the server answers `401` to each name, or `403` with a JSON body and no `error_code`, the
run stops with one line: `Remote server <url> rejected the API key (HTTP 401)`. When the server
does not answer, `dl --remote` keeps a service command with no service options, so `--help` still
works.
`timeout` is the time in seconds that the client waits for data from the server. The
default is `120`. The server sends a heartbeat every 30 seconds while it gets titles, tracks
or licences, so a slow service does not cause a timeout. Increase `timeout` only when the