Skip to content

Improve failure logging on expired TS API #45

@a1ecbr0wn

Description

@a1ecbr0wn

Edited after establishing the reason for the error:

Without changing my ACL or build, I started getting the following error when testing on GitHub. The issue was that my TS API key stored in GitHub had expired, but without notification, the error 401 was not clear enough to me that the key had expired. It would be nice if the error message was a little more descriptive about what to check.

Run go run tailscale.com/cmd/[email protected] "--policy-file=policy.hujson" "test"
go: downloading tailscale.com v1.66.4
go: downloading github.com/peterbourgon/ff/v3 v3.4.0
go: downloading github.com/tailscale/hujson v0.0.0-20221223112325-20486734a56a
go: downloading golang.org/x/oauth2 v0.16.0
go: downloading go4.org/mem v0.0.0-20220726221520-4f986261bf13
go: downloading golang.org/x/sys v0.18.0
go: downloading github.com/mitchellh/go-ps v1.0.0
go: downloading github.com/fxamacker/cbor/v2 v2.5.0
go: downloading github.com/hdevalence/ed25519consensus v0.2.0
go: downloading golang.org/x/crypto v0.21.0
go: downloading go4.org/netipx v0.0.0-20231129151722-fdeea329fbba
go: downloading github.com/jsimonetti/rtnetlink v1.4.0
go: downloading github.com/mdlayher/netlink v1.7.2
go: downloading github.com/x448/float16 v0.8.4
go: downloading filippo.io/edwards25519 v1.1.0
go: downloading github.com/josharian/native v1.1.1-0.20230202152459-5c7d0dd6ab86
go: downloading github.com/mdlayher/socket v0.5.0
go: downloading golang.org/x/net v0.23.0
go: downloading golang.org/x/sync v0.6.0
go: downloading golang.org/x/text v0.14.0
wanted HTTP status code 200 but got 401
exit status 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions