Original Message:
Sent: 04-21-2025 18:41
From: Pat Johnson
Subject: Error with CLi using "telephony providers edges sites numberplans list"
I have downloaded a new gc.exe from ( https://developer.genesys.cloud/devapps/cli/ ) and get the same response.
json: cannot unmarshal array into Go value of type models.Entitie
If I run the CLI without a variable, I also get the error
"gc telephony providers edges sites numberplans list f1s72fbf-95b2-3u1z-8a2b-1f3e4d5c6a7b"
json: cannot unmarshal array into Go value of type models.Entitie
In my "C:\Users\pjohnson\.gc\config.toml"
I do set my output format to JSON
output_format = 'JSON'
------------------------------
Pat Johnson
Sr. Solutions Analyst
Original Message:
Sent: 04-21-2025 18:32
From: Chad Markle
Subject: Error with CLi using "telephony providers edges sites numberplans list"
If I pass in the Site ID for one of my sites in the "gc telephony providers edges sites numberplans list" CLI command I get results. Do you have the most recent version of the CLI? If you are passing in data from from a file perhaps it isn't being structured correctly?
------------------------------
Chad Markle
Senior Director of IT Unified Communications
Original Message:
Sent: 04-21-2025 18:03
From: Pat Johnson
Subject: Error with CLi using "telephony providers edges sites numberplans list"
One of the IDs that I get from.
gc.exe telephony providers edges sites list
Example "f1s72fbf-95b2-3u1z-8a2b-1f3e4d5c6a7b"
------------------------------
Pat Johnson
Sr. Solutions Analyst
Original Message:
Sent: 04-21-2025 16:46
From: Chad Markle
Subject: Error with CLi using "telephony providers edges sites numberplans list"
Pat,
What is the value of $siteId?
Chad
------------------------------
Chad Markle
Senior Director of IT Unified Communications
Original Message:
Sent: 04-21-2025 15:19
From: Pat Johnson
Subject: Error with CLi using "telephony providers edges sites numberplans list"
With the CLI, I am getting an ERROR (json: cannot unmarshal array into Go value of type models.Entities)
gc.exe telephony providers edges sites numberplans list $siteId
Its working when using PowerShell and a REST call, I can get data with.$WebRequestParams = @{
Uri = "https://api.usw2.pure.cloud/api/v2/telephony/providers/edges/sites/$siteId/numberplans"
Method = "Get"
Headers = @{
"Authorization" = $Token
"Content-Type" = "application/json"
}
}
$Response = Invoke-WebRequest @WebRequestParams | ConvertFrom-Json
Return $Response
Am I doing something wrong?
#PlatformCLI
------------------------------
Pat Johnson
Sr. Solutions Analyst
------------------------------