Legacy Dev Forum Posts

 View Only

Sign Up

  • 1.  CLI tokens me head

    Posted 06-05-2025 19:34

    Adrian_Santamaria | 2022-01-28 08:54:32 UTC | #1

    Hello

    If using the CLI I try the method gc tokens me head, it returns this error. I don't know if its a bug.

    $ gc tokens me head panic: runtime error: invalid memory address or nil pointer dereference [signal 0xc0000005 code=0x0 addr=0x0 pc=0x11c85d3]

    goroutine 1 [running]: github.com/mypurecloud/platform-client-sdk-cli/build/gc/cmd/tokensme.glob..func3(0x2023a80, 0x212b788, 0x0, 0x0) /var/build/workspace/build-platform-sdks-pipeline/output/clisdkclient/gc/cmd/tokensme/tokens_me.go:195 +0x4f3 github.com/spf13/cobra.(Command).execute(0x2023a80, 0x212b788, 0x0, 0x0, 0x2023a80, 0x212b788) /home/jenkins/go/pkg/mod/github.com/spf13/cobra@v1.1.3/command.go:856 +0x2c2 github.com/spf13/cobra.(Command).ExecuteC(0x1f44380, 0x0, 0x0, 0x0) /home/jenkins/go/pkg/mod/github.com/spf13/cobra@v1.1.3/command.go:960 +0x375 github.com/spf13/cobra.(*Command).Execute(...) /home/jenkins/go/pkg/mod/github.com/spf13/cobra@v1.1.3/command.go:897 github.com/mypurecloud/platform-client-sdk-cli/build/gc/cmd.Execute() /var/build/workspace/build-platform-sdks-pipeline/output/clisdkclient/gc/cmd/root.go:189 +0x59 main.main() /var/build/workspace/build-platform-sdks-pipeline/output/clisdkclient/gc/gc.go:8 +0x27


    anon11147534 | 2022-01-28 09:07:30 UTC | #2

    Hi Adrian,

    It seems that we need to add support for HEAD requests. One of our team will take a look at this and release a fix shortly.


    system | 2022-02-28 09:07:40 UTC | #3

    This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.


    John_Carnell | 2022-04-26 16:51:41 UTC | #4

    Hi Adrian,

    I think something was missed and a ticket did not get created. I am going to open a bug ticket and get someone to take a look at it.

    Thanks, John Carnell Manager, Developer Engagement


    This post was migrated from the old Developer Forum.

    ref: 13367