Skip to content

Disconnect-TdService #102

@mabster

Description

@mabster

Prerequisites

Put an X between the brackets on each line to confirm you have completed them:

  • The issue is still present in the latest version of the module.
  • The issue has not been previously reported.

Describe the bug
Disconnect-TdService throws an exception.

To Reproduce
Connect to TOPdesk with a valid operator and application password.
Call Disconnect-TdService.

Expected behavior
The command executes without error.

Screenshots or Transcripts

Disconnect-TdService

Invoke-RestMethod : Object reference not set to an instance of an object.
At C:\Program Files\WindowsPowerShell\Modules\TOPdeskPS\0.1.5\TOPdeskPS.psm1:2861 char:19

  •     $result = Invoke-RestMethod @parameter -ErrorAction Stop
    
  •               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : NotSpecified: (:) [Invoke-RestMethod], NullReferenceException
    • FullyQualifiedErrorId : System.NullReferenceException,Microsoft.PowerShell.Commands.InvokeRestMethodCommand

Additional context
Maybe we don't need to disconnect. Feel free to let me know and just go ahead and close this issue if that's the case. :)

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