Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How can I fix "Remote error: Could not create content with type page"?

OTN DevOps
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 5, 2018

Hello all.

I am really trying to make use of Run CLI Actions in Confluence, but I keep running into roadblocks.

image.png

 

I have used the command: --action getSpaceList to retrieve a list of all spaces and I have permission to read/write into all of them (sys-admin).

When I use the command: --action storePage --space "Technical Operations" --title "Test Page 1" --content "Some Test Content" --parent "@home" I get the error shown in the picture above ("Remote error: Could not create content with type page").

I can manually do it.. I'm not sure what's going on. I have read that people have gotten a 403 with this message and that results from a permissions error, but I'm sure that I have permission.

Any help is appreciated!

 

UPDATE:

It seems that I can perform any of the "GET" actions but when it comes to a "POST" or "PUT" action, I cannot do it and am met with some sort of "Remote Error".

Again, the account I'm using has full permissions on confluence.

 

1 answer

0 votes
Deleted user June 7, 2018

Hi @OTN DevOps,

 

It could probably be an issue with space parameter. Can you use space key and try? Following command works well for me :

confluence --action storePage --space "REM" --title "Test Page33" --content "Some Test Content" --parent "@home"
Page created as 'Test Page33' in space REM as child of 'RemovePage'. Page has id 9863190.

You can try a GET operation to see the exact space key value

Thanks,

swathi

OTN DevOps
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 7, 2018

Hello @[deleted].

 

So, I'm actually trying to run these via Bob Swift's Run CLI Actions in Confluence addon.  I've actually tried with the space key as well and can't seem to get it working..

The command I used was

--action storePage --space "DSK" --title "Test Title" --content "test content" --parent "@home"

This still gave me the same error.

I'm not really sure what to do.

Stuti Golwala August 15, 2018

Hi @OTN DevOps

 

Can you try adding the following in your command:

--options basicAuthentication

Your command should look like:

--action storePage --space "DSK" --title "Test Title" --content "test content" --parent "@home" --options basicAuthentication

 

Let me know if that works!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events