Hi,
with ConfiForms I have built a form and after submitting it one action is to create a new page. The page gets created and I get back the new page ID (createdPage). I can open it in the browser too. Now I want to call the REST API of Confluence to manipulate the page immediately after page creation. E.g. 1st get the page info:
Web service URL is set to: /rest/api/content/[entry.createdPage] and method is GET.
After submitting the form I get this error:
Requested to https://wiki.***.**/rest/api/content/60722706 has resulted in error. Response code = 404. Response contents: {"statusCode":404,"data":{"authorized":false,"valid":true,"errors":[],"successful":false},"message":"No content found with id : ContentId{id=60722706}"}
When calling this url in the browser with the same user configured for the web service connection I get no 404 error and the expected json object with page info gets returned. It seems that the Confluence index doesn't know the new created page when calling the API immediately after page creation. Searching this forum and contact to ConfiForms support could not solve this issue. Is there any possibility to get this working?
Thank your for any hint!
Hi!
Looks like it was issue related to reindex.
time to time I check by rest and reindex by rest as well
https://github.com/atlassian-api/atlassian-python-api/blob/master/atlassian/confluence.py#L840
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.