Skip to content

ConvertTo-ConfluenceStorageFormat cmdlet gives error on Ubuntu #204

@spatel-15

Description

@spatel-15

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions