Skip to content

Getting 401 when using Get-ConfluencePage #211

@albvar

Description

@albvar

Issue Title: Unauthorized Access Error with ConfluencePS 2.5.1 despite Correct Credentials

Description:
This issue is similar to issue #174, but I'd like to clarify that reinstalling the module is not a viable solution for me. I am currently using Windows Management Framework (WMF) 5.1 with ConfluencePS version 2.5.1.

Steps to Reproduce:

$cred = New-Object System.Management.Automation.PSCredential ('DOMAIN\svc-account', (ConvertTo-SecureString 'mypass' -AsPlainText -Force))
Set-ConfluenceInfo -BaseURI 'https://confluence-server.domain.com' -Verbose -Credential $cred
Get-ConfluencePage -SpaceKey 'MYSPACEKEY' -PageSize 100
WARNING: Confluence returned HTTP error 401 - Unauthorized
Invoke-Method : An unknown error occurred.
At C:\Users\<user<\Documents\WindowsPowerShell\Modules\ConfluencePS\2.5.1\ConfluencePS.psm1:772 char:21
+                     Invoke-Method @iwParameters
+                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidResult: (HTTP Status 401...e Tomcat/9.0.82:String) [Invoke-Method], ArgumentException
    + FullyQualifiedErrorId : InvalidResponse.Status401,Invoke-Method

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions