Skip to content

Error when trying to connect to Cloud server. #17

@jcandresen

Description

@jcandresen

I'm getting a json error when I try to connect, not entirely sure why.

$Server = 'na.myconnectwise.net'

# This is the company entered at login
$Company = 'ABC'

# Create a credential object
$Credentials = Get-Credential

# Load the module into memory
iwr 'https://raw.githubusercontent.com/LabtechConsulting/ConnectWise-Manage-Powershell/master/CWManage.psm1' | iex

# Connect to Manage server
Connect-CWM -Server $Server -Company $Company -Credentials $Credentials



Connect-CWM -Server $Server -Company $Company -Credentials $Credentials
ConvertFrom-Json : Invalid JSON primitive: Cannot.
At line:792 char:52
+             $global:errDetails = $_.ErrorDetails | ConvertFrom-Json
+                                                    ~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [ConvertFrom-Json], ArgumentException
    + FullyQualifiedErrorId : System.ArgumentException,Microsoft.PowerShell.Commands.ConvertFromJsonCommand
 
WARNING: Authentication failed. Clearing connection settings.

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