CrowdStrike / psfalcon

PowerShell for CrowdStrike's OAuth2 APIs
The Unlicense
369 stars 70 forks source link

[ BUG ] `Index was out of range` error related to RTR sessions #398

Closed mcj323s closed 7 months ago

mcj323s commented 7 months ago

Describe the bug When authenticating and starting RTR sessions this issue randomly happens. I am not sure if this is an API issue or the powershell modules which worked last week. The problem happened 4/16 and now happens intermittently since updating to .net 4.8.1

To Reproduce Commands that I experienced the issue on. Request-FalconToken Session-Start Invoke-FalconAdmin Intermittenly

Environment (please complete the following information):

Additional context I am running a script that gathers a list of device ids, creates a session token uses the Start-Session. Runs 6 commands waiting for each command to complete. Then it starts with a new device. Normally no issues. If this relates to the API performance I can report this do CrowdStrike.

Transcript content If possible, please include a PowerShell transcript. Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index At \My Documents\WindowsPowerShell\Modules\PSFalcon\2.2.6\public\real-time-response.ps1:1346 char:9

Expected behavior Normally a session key is created. Authentication token is created. Nothing is showing in the verbose output related to the API.

bk-cs commented 7 months ago

Can you try applying the fix detailed in this issue?

https://github.com/CrowdStrike/psfalcon/issues/382#issuecomment-1961927325

mcj323s commented 7 months ago

Applied. Thank you. If no response in 24 hours it's issue has been resolved.