CLI tokens me head

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/tokens_me.glob..func3(0x2023a80, 0x212b788, 0x0, 0x0)
        /var/build/workspace/build-platform-sdks-pipeline/output/clisdkclient/gc/cmd/tokens_me/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

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.

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

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