Authkeys expire command invalid json output on error #53

Closed
opened 2025-12-29 01:21:12 +01:00 by adam · 0 comments
Owner

Originally created by @0xcd0e on GitHub (Oct 14, 2021).

Tested on v0.10.2
The preauthkeys expire command does not return valid json when using the -o flag and trying to expire a key which can not be expired

# headscale preauthkeys -n testns expire 123 -o json
2021/10/14 20:29:32 Error getting the key: AuthKey not found
# headscale preauthkeys -n testns expire d87cea8feef8efb95004b8a8f8a3336c711b6a8749e393cb -o json
2021/10/14 20:29:46 Error getting the key: AuthKey has already been used
Originally created by @0xcd0e on GitHub (Oct 14, 2021). Tested on v0.10.2 The preauthkeys expire command does not return valid json when using the -o flag and trying to expire a key which can not be expired ``` # headscale preauthkeys -n testns expire 123 -o json 2021/10/14 20:29:32 Error getting the key: AuthKey not found # headscale preauthkeys -n testns expire d87cea8feef8efb95004b8a8f8a3336c711b6a8749e393cb -o json 2021/10/14 20:29:46 Error getting the key: AuthKey has already been used ```
adam closed this issue 2025-12-29 01:21:12 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/headscale#53