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

Get-ConfluenceSpace throwing HTTP 500 / not working #214

Open
Constey opened this issue Aug 26, 2024 · 1 comment
Open

Get-ConfluenceSpace throwing HTTP 500 / not working #214

Constey opened this issue Aug 26, 2024 · 1 comment

Comments

@Constey
Copy link

Constey commented Aug 26, 2024

Since a couple of months the Get-ConfluenceSpace is not working anymore for me. The only thing changed is the Confluence Version itself i guess.

Has anyone the same problems?

Import-Module ConfluencePS
Set-ConfluenceInfo -BaseURI 'https://confluence.fqdn' -PromptCredentials
$spaces = Get-ConfluenceSpace
WARNING: Confluence returned HTTP error 500 - InternalServerError

`Get-InstalledModule ConfluencePS

Version Name Repository Description


2.5.1 ConfluencePS PSGallery PowerShell module to interact with the Atlassian Confluence REST API`


Using Confluence-Datacenter in Version: 8.9.4

ERBOSE: [Get-ConfluenceSpace] Function started
VERBOSE: [Invoke-Method] Function started
VERBOSE: [ConvertTo-GetParameter] Making HTTP get parameter string out of a hashtable
VERBOSE: [Invoke-Method] Invoking method Get to URI https://confluence.fqdn/rest/api/space
VERBOSE: [Invoke-Method] Invoke-WebRequest with: 
Method          : Get
Credential      : System.Management.Automation.PSCredential
ContentType     : application/json; charset=utf-8
Uri             : https://confluence.fqdn/rest/api/space?expand=description.plain,icon,homepage,metadata.labels&limit=25
Headers         : {[Accept-Charset, utf-8], [Accept, application/json]}
UseBasicParsing : True
Verbose         : False
ErrorAction     : Stop


VERBOSE: [Invoke-Method] Failed to get an answer from the server                                                        
VERBOSE: [Invoke-Method] Status code: InternalServerError
WARNING: Confluence returned HTTP error 500 - InternalServerError
VERBOSE: [Invoke-Method] Retrieved body of HTTP response for more information about the error ($responseBody)
Invoke-ConfluenceMethod: An unknown error ocurred.
VERBOSE: [Invoke-Method] Function ended
VERBOSE: [Get-ConfluenceSpace] Function ended
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

3 participants
@Constey and others