Summary
eightctl device owner fails because /devices/<deviceId>/owner is unavailable for current API/account behavior.
Repro
Actual
Request:
GET /devices/<deviceId>/owner
Returns 404 on both app-api and client-api for this account.
Expected
device owner should return owner metadata (or at least ownerId) without hard failure.
Suggested Fix
- Try
/devices/<deviceId>/owner.
- If endpoint unavailable (404/route missing), fallback to
/devices/<deviceId> and extract:
- Return
{ "ownerId": "..." }.
I have implemented and use this fix on a local fork, feel free to reference my implementation diff: https://gist.github.com/0xble/7303266320adf012ac552f149ee1084e
Environment
- macOS (Apple Silicon)
eightctl 0.1.0-dev
Summary
eightctl device ownerfails because/devices/<deviceId>/owneris unavailable for current API/account behavior.Repro
Actual
Request:
Returns
404on both app-api and client-api for this account.Expected
device ownershould return owner metadata (or at leastownerId) without hard failure.Suggested Fix
/devices/<deviceId>/owner./devices/<deviceId>and extract:result.ownerId{ "ownerId": "..." }.I have implemented and use this fix on a local fork, feel free to reference my implementation diff: https://gist.github.com/0xble/7303266320adf012ac552f149ee1084e
Environment
eightctl 0.1.0-dev