-
Notifications
You must be signed in to change notification settings - Fork 29
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
Unable to connect with new PSZoom version #82
Comments
The command looks well formatted to me. I tested 2.0.1.0 in PowerShell 5 and 7, and it's working as suspected. I also tried entering wrong credentials and the same error was returned. I suspect it's with how the app was set up or the credentials are not correct. |
I've re-created the app and still getting the same error |
I would try making the calls using a plain powershell script or even testing your app with Postman. See https://marketplace.zoom.us/docs/guides/guides/postman/using-postman-to-test-zoom-apis/. The script at the bottom of this comment should return the following when succesful:
or error:
Here's the script:
|
Ah, this is likely related to internet explorer not being on your local computer. I still have to push those changes to the powershell gallery. |
The changes are pushed to the gallery. Please update your module and try again. |
Hey, Annoyingly I'm using Rundeck and not Postman - I'll do some Googling on this one |
Hello @JosephMcEvoy |
ran that test "new-oauthtoken" script and it errored out on my win 10 machine, but worked fine on server. i believe this is due to changes in behavior of IE. when launched on win 10 machine it closes and launches new edge. Also why are you not just using Invoke-RestMethod ? |
I think this is the issue I'm experiencing at the moment. It's not clear to me why IE is relevant to this issue, could someone please explain? I've written a little test script that attempts the Connect-PSZoom with the accountid, clientid, and client secret. On my own machine, it works. On the server, it throws the same error messages others have screenshotted. |
I'm getting the error
ConvertFrom-Json : Cannot bind argument to parameter 'InputObject' because it is null.
At C:\Users\User\Documents\WindowsPowerShell\Modules\PSZoom\2.0.1.0\Public\Utils\New-OAuthToken.ps1:78 char:35
$token = ($response. Content | ConvertFrom-Json).access_token
Connect-PSZoom : Unable to retrieve token for account ID xxxxx.
I'm using the command
Connect-PSZoom -AccountID 'XXXX' -ClientID 'XXXX' -ClientSecret 'XXXX'
These settings are from the new Server-to-Server OAuth app I've created on Zoom.
What am I doing wrong?
The text was updated successfully, but these errors were encountered: