Skip to content

Script error #4

@Tbird1979

Description

@Tbird1979

Hello,
i'm getting this error when i run the script...

Invoke-WebRequest : {"error":"invalid_client"}
At C:\Scripts\NinjaTicketing.ps1:243 char:15

  • ... $Result = Invoke-WebRequest -uri "https://$($Script:Instance)/ws/oa ...
  •             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-WebRequest], WebException
    • FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeWebRequestCommand
      ConvertFrom-Json : Cannot bind argument to parameter 'InputObject' because it is null.
      At C:\Scripts\NinjaTicketing.ps1:246 char:56
  • ... uthorization' = "Bearer $(($Result.content | ConvertFrom-Json).access ...
  •                                              ~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidData: (:) [ConvertFrom-Json], ParameterBindingValidationException
    • FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Microsoft.PowerShell.Commands.ConvertFromJsonCommand

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