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

ConvertTo-ConfluenceStorageFormat cmdlet gives error on Ubuntu #204

Open
spatel-15 opened this issue Sep 14, 2022 · 0 comments
Open

ConvertTo-ConfluenceStorageFormat cmdlet gives error on Ubuntu #204

spatel-15 opened this issue Sep 14, 2022 · 0 comments

Comments

@spatel-15
Copy link

spatel-15 commented Sep 14, 2022

Hi
there is an issue with ConvertTo-ConfluenceStorageFormat powershell cmdmlet, it is giving error (details below)
I am using below OS and PowerShell version 7.2.6

Distributor ID: Ubuntu
Description:    Ubuntu 20.04.5 LTS
Release:        20.04
Codename:       focal

Confluence Powershell Module

AtlassianPS.Configuration  0.2.4
ConfluencePS  2.5.1

ConvertTo-ConfluenceStorageFormat is having issues and gives error

Get-Date -Format s | ConvertTo-ConfluenceStorageFormat -ApiUri "https://mycompany.atlassian.net/wiki/"
ConvertFrom-Json: Conversion from JSON failed with error: Unexpected character encountered while parsing value: <. Path '', line 0, position 0.
ConvertTo-ConfluenceStorageFormat -Content 'Hello world!' -ApiUri "https://mycompany.atlassian.net/wiki/"
ConvertFrom-Json: Conversion from JSON failed with error: Unexpected character encountered while parsing value: <. Path '', line 0, position 0.

also - examples on this page has to be updated to support mandatory parameter -ApiUrl

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