Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting 401 when using Get-ConfluencePage #211

Open
albvar opened this issue Mar 12, 2024 · 0 comments
Open

Getting 401 when using Get-ConfluencePage #211

albvar opened this issue Mar 12, 2024 · 0 comments

Comments

@albvar
Copy link

albvar commented Mar 12, 2024

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant