Skip to content

Issue with Execution Property Output from Invoke-vROWorkflow #21

Closed
@jonathanmedd

Description

@jonathanmedd

Steps to reproduce

Invoke-vROWorkflow -Id '941487f0-fb83-4577-be23-b22a3b600e3c'

Expected behaviour

StatusCode StatusDescription Execution
---------- ----------------- ---------
       202 Accepted          /vco/api/workflows/941487f0-fb83-4577-be23-b22a3b600e3c/executions/2c94c8b46638fac301663fdbbfe109bf/

Actual behaviour

Cannot convert value "h" to type "System.Uri". Error: "Invalid cast from 'System.Char' to 'System.Uri'."

Environment data

> $PSVersionTable

Name                           Value
----                           -----
PSVersion                      5.1.14409.1012
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.14409.1012
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1

> $vROConnection

Server             : https://testvro001.domain.local:8281
Username           : test01@domain.local
EncodedPassword    : xxxxxxxxxxxxxx
Version            : 7.3.0.5481809
APIVersion         : 5.5.2
SignedCertificates : False
SslProtocol        : Tls12

See report here from @mponton: 5013d02

Note: this does not happen on PowerShell 6.

The suggestion in the above link of the following works on PowerShell 5.1,

([System.Uri]$InvokeRequest.Headers.Location).LocalPath

but on PowerShell 6 results in:

Cannot convert the "System.String[]" value of type "System.String[]" to type "System.Uri".

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions