Getting error when running the script

Issue #362 resolved
Moshe Grinberg created an issue

Edit: I fixed it by removing .atlassian.net from  $account = ‘mydomain'
I thought I should write my full domain there..
before - $account = 'mydomain.atlassian.net' → Didn’t work
after - $account = 'mydomain' → worked

The Atlassian domain and token are correct since I use the same details for the Confluence PS script that is shared here and for Confluence it works. The account I use to run the script is Local Admin.

Would appreciate your help with this

Thanks

Invoke-RestMethod : The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel.

At C:\Scripts\FullJiraBackup.ps1:70 char:15

+ ...   $status = Invoke-RestMethod -Method Get -Headers $header -Uri "http ...

+                 ~~~~~

+ CategoryInfo          : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-RestMethod], WebException

+ FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeRestMethodCommand

Comments (3)

  1. Log in to comment