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 'Token'" after updating to 2.0.4.0 #98

Closed
I-FGSD opened this issue Sep 19, 2023 · 3 comments

Comments

@I-FGSD
Copy link
Contributor

I-FGSD commented Sep 19, 2023

On 2.0.3.0 it works fine. I run Connect-PSZoom and then can run commands like get-zoomuser

After updating to 2.0.4.0:

Connect-PSZoom runs normally (no error messages displayed).

Issuing a command like:
get-zoomuser [email protected]

Invoke-ZoomRestMethod : Cannot process argument transformation on parameter 'Token'. Cannot convert the "System.Security.SecureString" value of type "System.String" to type "System.Security.SecureString".
At C:\Program Files\WindowsPowerShell\Modules\pszoom\2.0.4.0\Public\Users\Get-ZoomUser.ps1:85 char:25

  • ... $response = Invoke-ZoomRestMethod -Uri $request.Uri -Method GET
  •                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidData: (:) [Invoke-ZoomRestMethod], ParameterBindingArgumentTransformationException
    • FullyQualifiedErrorId : ParameterArgumentTransformationError,Invoke-ZoomRestMethod

I downgraded back to 2.0.3.0 and it's working fine once again.

@mstreeter06
Copy link

mstreeter06 commented Sep 22, 2023

I experienced the same issue with 2.0.4.0 and resolved by going back to 2.0.3.0.

Love the module. Much appreciated to everyone!

@JosephMcEvoy
Copy link
Owner

Thanks all I'll take a look tomorrow (Friday).

JosephMcEvoy added a commit that referenced this issue Sep 23, 2023
String type in parameter.

Also fixes New-OauthToken not working standalone.
@mstreeter06
Copy link

Confirmed the 2.0.4.1 update working. Thank you!

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