Skip to content

[BUG] HTB Token appears invalid or expired #134

Description

@qu35t-code

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

htb-cli machines

	ERROR	cmd/machines.go:193		{"error": "failed to get data from https://labs.hackthebox.com/api/v4/machine/paginated/?per_page=20: HTB Token appears invalid or expired"}
github.com/GoToolSharing/htb-cli/cmd.init.func5
	/home/qu35t/go/pkg/mod/github.com/!go!tool!sharing/htb-cli@v1.6.1-0.20250212182949-0a380c551250/cmd/machines.go:193
github.com/spf13/cobra.(*Command).execute
	/home/qu35t/go/pkg/mod/github.com/spf13/cobra@v1.8.1/command.go:989
github.com/spf13/cobra.(*Command).ExecuteC
	/home/qu35t/go/pkg/mod/github.com/spf13/cobra@v1.8.1/command.go:1117
github.com/spf13/cobra.(*Command).Execute
	/home/qu35t/go/pkg/mod/github.com/spf13/cobra@v1.8.1/command.go:1041
github.com/GoToolSharing/htb-cli/cmd.Execute
	/home/qu35t/go/pkg/mod/github.com/!go!tool!sharing/htb-cli@v1.6.1-0.20250212182949-0a380c551250/cmd/root.go:46
main.main
	/home/qu35t/go/pkg/mod/github.com/!go!tool!sharing/htb-cli@v1.6.1-0.20250212182949-0a380c551250/main.go:8
runtime.main
	/usr/lib/go/src/runtime/proc.go:283

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

  • Status
    Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions