Skip to content

Error on First Run #1

@grownuphacker

Description

@grownuphacker

I'm just starting to dive into your module - first snag.

On first run, I did a set-GLAPIConfig with the URL and a token from your convert token tool.

My string works in an invoke-restmethod but I get:

Write-Error : Cannot bind argument to parameter 'Exception' because it is null.
At C:\Program Files\WindowsPowerShell\Modules\PSGraylog\Release\PSGraylog\public\Get-GLCluster.ps1:47 char:36
+             Write-Error -Exception $Error[0].Exception -Message $Erro ...
+                                    ~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidData: (:) [Write-Error], ParameterBindingValidationException
    + FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Microsoft.PowerShell.Commands.WriteErrorC
   ommand

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions