Legacy Dev Forum Posts

 View Only

Sign Up

Defect in new version when running under powershell?

  • 1.  Defect in new version when running under powershell?

    Posted 06-05-2025 19:34

    VaunMcCarthy | 2023-04-12 04:50:03 UTC | #1

    Trying gc users list -a works fine from command line, and previously it also worked fine within a powershell script. The latest version however seems to have a major problem when running from within a powershell script. I've rolled back to an older version of the CLI and that works.

    panic: runtime error: index out of range [0] with length 0

    goroutine 1 [running]: github.com/mypurecloud/platform-client-sdk-cli/build/gc/services.getCursor(0x1b8e760?) /var/build/workspace/build-platform-sdks-pipeline/output/clisdkclient/gc/services/commandservice.go:347 +0x158 github.com/mypurecloud/platform-client-sdk-cli/build/gc/services.(commandService).List(0xc0003c8a00, {0xc00029e1b0, 0x26}) /var/build/workspace/build-platform-sdks-pipeline/output/clisdkclient/gc/services/commandservice.go:230 +0x3aa github.com/mypurecloud/platform-client-sdk-cli/build/gc/retry.Retry.func1(0xc0003c8a00?) /var/build/workspace/build-platform-sdks-pipeline/output/clisdkclient/gc/retry/retry.go:76 +0x9f github.com/mypurecloud/platform-client-sdk-cli/build/gc/cmd/users.glob..func4(0x2764540?, {0xc0002b1970?, 0x1?, 0x1?}) /var/build/workspace/build-platform-sdks-pipeline/output/clisdkclient/gc/cmd/users/users.go:425 +0x6f0 github.com/spf13/cobra.(Command).execute(0x2764540, {0xc0002b1950, 0x1, 0x1}) /home/jenkins/go/pkg/mod/github.com/spf13/cobra@v1.6.1/command.go:920 +0x847 github.com/spf13/cobra.(Command).ExecuteC(0x2635040) /home/jenkins/go/pkg/mod/github.com/spf13/cobra@v1.6.1/command.go:1044 +0x3bc github.com/spf13/cobra.(Command).Execute(...) /home/jenkins/go/pkg/mod/github.com/spf13/cobra@v1.6.1/command.go:968 github.com/mypurecloud/platform-client-sdk-cli/build/gc/cmd.Execute() /var/build/workspace/build-platform-sdks-pipeline/output/clisdkclient/gc/cmd/root.go:197 +0x37 main.main() /var/build/workspace/build-platform-sdks-pipeline/output/clisdkclient/gc/gc.go:8 +0x17


    charlie.conneely | 2023-04-12 11:13:58 UTC | #2

    Hi Vaun

    Thanks for bringing this bug to our attention. We'll get to work on it as soon as we can.

    Regards Charlie


    VaunMcCarthy | 2023-04-16 04:05:03 UTC | #3

    Any ETA on this Charlie? Also, where do I find release notes for the CLI?


    charlie.conneely | 2023-04-18 09:04:34 UTC | #4

    Hopefully we can get it out by the end of the week, although it could be next week.

    Unfortunately not, but I will ping you here when it has been released.


    charlie.conneely | 2023-04-24 13:01:58 UTC | #5

    Hi @VaunMcCarthy

    This bug fix has been released on v66.0.0

    Thanks again for raising the issue

    Charlie


    system | 2023-05-24 13:02:12 UTC | #6

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


    This post was migrated from the old Developer Forum.

    ref: 19405