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

Cannot process argument transformation on parameter 'Response' #121

Open
dab894 opened this issue Feb 27, 2025 · 4 comments
Open

Cannot process argument transformation on parameter 'Response' #121

dab894 opened this issue Feb 27, 2025 · 4 comments

Comments

@dab894
Copy link

dab894 commented Feb 27, 2025

Cannot process argument transformation on parameter 'Response'
is received when running the following on 1.4.8:
get-report (all varieties: v2024, etc...)
deny-AccessRequest

They work fine on 1.4.7

@yannick-beot-sp
Copy link
Contributor

yannick-beot-sp commented Mar 3, 2025

Same issue with Update-V2024EntitlementsInBulk

This cmdlet is related to the endpoint https://developer.sailpoint.com/docs/api/v2024/update-entitlements-in-bulk which does not return anything (204 with no content).

Response.content in Private\V2024ApiClient.ps1 actually contains a byte[0], hence the error of conversion to string.

@tyler-mairose-sp
Copy link
Member

I see this is happening to more than one person, but I am not able to replicate it.

Can you give me more details on how this error occurs?

I am using:
MacOS 14.7.4
PowerShell v7.4.1
PSSailPoint v1.4.8

@yannick-beot-sp
Copy link
Contributor

I'm using:
Windows 11
PowerShell Core 7.4.6
PSSailPoint v1.4.8

The problem does not exist with PSSailPoint v1.4.7

@dab894
Copy link
Author

dab894 commented Mar 3, 2025

Windows 10
Powershell 7.4.6
PSSailPoint v1.4.8

PS C:\Program Files\PowerShell\7> deny-accessRequest -ApprovalId fe5a9b38e44c40bfa2cc5fe89160f08a -CommentDto $comment -verbose -debug
DEBUG: Calling method: Deny-AccessRequest
DEBUG: Parameter Value
DEBUG: --------- -----
DEBUG: ApprovalId fe5a9b38e44c40bfa2cc5fe89160f08a
DEBUG: CommentDto @{comment=…
DEBUG: Calling method: Invoke-ApiClient
DEBUG: Parameter Value
DEBUG: --------- -----
DEBUG: Method POST
DEBUG: Uri /access-request-approvals/fe5a9b38e44c40bfa2cc5fe89160f08a/reject
DEBUG: Accepts application/json
DEBUG: ContentTypes application/json
DEBUG: Body {…
DEBUG: HeaderParameters {}
DEBUG: QueryParameters {}
DEBUG: FormParameters {}
DEBUG: CookieParameters {}
DEBUG: ReturnType SystemCollectionsHashtable
DEBUG: IsBodyNullable False
DEBUG: Calling Endpoint: https://sw.api.identitynow.com/v3/access-request-approvals/fe5a9b38e44c40bfa2cc5fe89160f08a/reject
VERBOSE: Request Headers:
Name Value


User-Agent OpenAPI-Generator/1.4.8/ps
Content-Type application/json
Authorization Bearer
X-SailPoint-SDK Powershell-1.4.8
Accept application/json

VERBOSE: Request Body: {
"comment": "",
"author": ""
}
VERBOSE: Requested HTTP/1.1 POST with 283-byte payload
VERBOSE: Received HTTP/1.1 response of content type of unknown size
Invoke-ApiClient: C:\Users<more path info deleted> \Documents\PowerShell\Modules\PSSailpoint.V3\1.4.8\Api\AccessRequestApprovalsApi.ps1:616
Line |
616 | $LocalVarResult = Invoke-ApiClient -Method 'POST' `
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Cannot process argument transformation on parameter 'Response'. Cannot convert value to type
| System.String.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants