Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with Execution Property Output from Invoke-vROWorkflow #21

Closed
jonathanmedd opened this issue Oct 4, 2018 · 0 comments
Closed
Assignees
Labels
Milestone

Comments

@jonathanmedd
Copy link
Contributor

jonathanmedd commented Oct 4, 2018

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".
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant