Genesys Cloud - Developer Community!

 View Only

Sign Up

  • 1.  cli issue, "cannot unmarshal array into Go value of type models.Entities"

    Posted 28 days ago
    Edited by Kazuo Araki 28 days ago

    Hello,

    I am trying to get number plan info from following execute gc cli command. However, following error message showed.

    command:

    gc telephony providers edges sites numberplans list [id] -p [profile name]

    output:

    json: cannot unmarshal array into Go value of type models.Entities

    Is there any solution how to fix this issue?

    Platform: Windows 11

    Best Regards,

    Kazuo Araki


    #PlatformCLI

    ------------------------------
    Kazuo Araki
    会社員
    ------------------------------



  • 2.  RE: cli issue, "cannot unmarshal array into Go value of type models.Entities"

    Posted 28 days ago

    I am using gc version 143

    C:\>gc version
    Current version: 143.0.0
    You're all up to date.



    ------------------------------
    Kazuo Araki
    会社員
    ------------------------------



  • 3.  RE: cli issue, "cannot unmarshal array into Go value of type models.Entities"

    Posted 24 days ago

    Hi Kazuo, 

    To report possible defects, could you please open a ticket with CARE ?

    Best Regards,



    ------------------------------
    Ewomazino Onokpise
    Software Engineer
    ------------------------------



  • 4.  RE: cli issue, "cannot unmarshal array into Go value of type models.Entities"

    Posted 23 days ago

    Hello Ewomazino Onokpise,

    Thank you for reply.

    I didn't open a ticket with Customer Care, but My company's colleague said that use following command.

    gc.exe autopagination disable -p [profile name]

    After execute above command,  I could get number plan information.

    They say it seems "gc telephony providers edges sites numberplans list" does not support autopagination.

    Regards,

    Kazuo Araki



    ------------------------------
    Kazuo Araki
    会社員
    ------------------------------



  • 5.  RE: cli issue, "cannot unmarshal array into Go value of type models.Entities"

    Posted 22 days ago

    Hi Kazuo, 

    Thank you for following up.

    Best Regards,



    ------------------------------
    Ewomazino Onokpise
    Software Engineer
    ------------------------------