Open 0xBK-tull opened 1 month ago
I think I've narrowed this issue down to a couple of things:
put
commands were not waiting long enough for completion.Invoke-FalconAdminCommand
, Invoke-FalconCommand
and Invoke-FalconResponderCommand
were attempting to append batch_id
to a timed out request (thus leading to the null-valued expression
error).I've updated class\Class.ps1
, public\real-time-response.ps1
and public\psf-real-time-response.ps1
after some testing with Invoke-FalconDeploy
using large files (~650MB). Can you try updating your local module with these changes and let me know if it eliminates your error?
Import-Module -Name PSFalcon
$ModulePath = (Show-FalconModule).ModulePath
(Invoke-WebRequest -Uri https://raw.githubusercontent.com/CrowdStrike/psfalcon/202892ae12b200c18662f20c8655af69a05c7da8/class/Class.ps1 -UseBasicParsing).Content > (Join-Path (Join-Path $ModulePath class) Class.ps1)
(Invoke-WebRequest -Uri https://raw.githubusercontent.com/CrowdStrike/psfalcon/202892ae12b200c18662f20c8655af69a05c7da8/public/psf-real-time-response.ps1 -UseBasicParsing).Content > (Join-Path (Join-Path $ModulePath public) psf-real-time-response.ps1)
(Invoke-WebRequest -Uri https://raw.githubusercontent.com/CrowdStrike/psfalcon/202892ae12b200c18662f20c8655af69a05c7da8/public/real-time-response.ps1 -UseBasicParsing).Content > (Join-Path (Join-Path $ModulePath public) real-time-response.ps1)
Please ensure that you close and re-open PowerShell and re-import PSFalcon before testing. The Class.ps1
changes will definitely not work without fully restarting PowerShell.
Describe the bug When I go to run
Invoke-FalconDeploy
, about half the time I get an error message at theput
stage. The error is as follows:Environment (please complete the following information):
Additional context I had posted on reddit about this and bk-CS advised me to open this bug report. Apologies for the delay bk-CS, I got side tracked by a convention known as Fal.Con.
Transcript content