Closed hlj013 closed 3 years ago
Hi @hlj013 , that is expected behaviour, New-PASSession
returns no output.
A 500 error indicates possibility of a configuration issue on the target api server.
This command will return the session data if it is needed: https://pspas.pspete.dev/commands/Get-PASSession
Thank you for your response. I had already tried the Get_PASSession command. Here is my result: get-PASSession VERBOSE: GET https://pvwa.domain/PasswordVault/WebServices/PIMServices.svc/User with 0-byte payload Invoke-WebRequest : The remote server returned an error: (500) Internal Server Error. At line:209 char:19
+ CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-WebRequest], WebException
+ FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeWebRequestCommand
Check closed issues for previous reports of 500 errors to see the ways in which they have been resolved for others:
Any update? do you still need the issue open?
Closing, no updates.
Describe the issue When I run the PASSession command I get no result, but no error either and get error 500 when I try to run other commands that require the session. I confrimed that I can logon to the URL with the creds supplied.
To Reproduce Steps to reproduce the behavior:
Expected behavior I expect $t to have the PAS Session information and be able to utilize it to run commands against our CyberArk Screenshots & Console Output DEBUG: [Body] { "password": "**", "username": "Username" } VERBOSE: POST https://pvwa.domain/PasswordVault/api/Auth/LDAP/Logon with -1-byte payload VERBOSE: received 182-byte response of content type application/json; charset=utf-8 VERBOSE: GET https://pvwa.domain/PasswordVault/WebServices/PIMServices.svc/Server with 0-byte payload
Console Output Code Block:
Your Environment
Additional context