Skip to main content
Question

Orchestration powershell app returns URI Too Long error


Forum|alt.badge.img

I’m trying to execute a fairly simple powershell script with a very long input … it works in microsoft powershell ise but not in Freshservice automation.  The error reads like

400

completed_with_errors

false

Failed to decode:Unexpected character ('<' (code 60)): expected a valid value (number, String, array, object, 'true', 'false' or 'null') at [Source:

Request-URI Too Large

WEBrick::HTTPStatus::RequestURITooLarge

WEBrick/1.6.0 (Ruby/2.7.2/2020-10-01) at TPVSINFPFS01.ad.toddenergy.co.nz:4567

; line: 1, column: 2]

 

AND the script is like:

ConvertFrom-Json -InputObject @" 
{{P5.root.results.results_object}}
"@ | Format-List
 

where {{P5.root.results.results_object}} is very long, about 12K characters. Yes it is valid json, microsoft powershell ise has no trouble with what I am testing.

 

I’d rather not write the contents of {{P5.root.results.results_object}} to a file.

 

Any other options?

 

Did this topic help you find an answer to your question?

0 replies

Join the Community or User Group to Participate in this Discussion

Reply