Skip to content

[Bug]: Cannot convert argument "inArray", with value #155

@gijsrrr

Description

@gijsrrr

What happened?
Checked out the versions from PSGallery for Monkey365 and ran into this bug, thought it was an issue limited to the PSGallery so grabbed an copy of the GitHub one and still showing this error.

How to reproduce it

  1. Download either Monkey365 from GitHub or install it from PSGallery
  2. Run it with Invoke-Monkey365 -PromptBehavior SelectAccount -Instance Azure -Collect All -IncludeEntraID -ExportTo HTML
  3. ??
  4. The scanner bails out with:
    Write-Error : [07:47:40:196] - [Invoke-AzureScanner] - Cannot convert argument "inArray", with value:

Expected behavior
Monkey365 running as normal.

Screenshots or Logs
~ Invoke-Monkey365 -PromptBehavior SelectAccount -Instance Azure -Collect All -IncludeEntraID -ExportTo HTML
Write-Error : [07:47:40:196] - [Invoke-AzureScanner] - Cannot convert argument "inArray", with value:
"����JFIFxx��C
< alot of gibberish>
to type "System.Byte[]".
Error: "Cannot convert value "����JFIFxx��C to type "System.Byte". Error:
"Input string was not in a correct format.""". LineNumber: At C:\Users\XXXXX\monkey365\core\init\Get-ExecutionInfo.ps1:135
char:20

  •         $pic = Get-MonkeyMSGraphProfilePhoto @p
    
  •                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - exception - akula -
    

At C:\Users\XXXXXX\monkey365\core\analysis\Invoke-AzureScanner.ps1:136 char:9

  •     Write-Error $_
    
  •     ~~~~~~~~~~~~~~
    
    • CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
    • FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Write-Error

From where are you running Monkey365?

  • OS: Windows 11

Name Value


PSVersion 5.1.26100.4202
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.26100.4202
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1

Additional context
N/A

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingimpact-lowIssue with low impact to codebaseseverity-highIssue with high severity

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions