Hello Experts,
I am recently exploring confluence REST APIs. I was trying examples at https://developer.atlassian.com/server/confluence/confluence-rest-api-examples/
So I created a my free sample Space & Confluence Page at Atlassian cloud https://userid.atlassian.net/
When I tried using curl GET example I am getting
{
"message": "Current user not permitted to use Confluence",
"statusCode": 403
}
I referred all the examples & Suggestions given at below links but couldn't able to figure out the issue. If you could help me out in understanding and showing me the direction that would be great.
https://community.developer.atlassian.com/t/401-unauthorized-with-bearer-token-from-oauth/42561
Error step:
C:\Users\sent>curl -D- --ssl-no-revoke -u <userid>:<Api token> -X GET -H "Content-Type: application/json" https://userid.atlassian.net/wiki/rest/api/content/<pageno>
HTTP/1.1 403 Forbidden
Server: AtlassianProxy/1.19.3.1
vary: Accept-Encoding
cache-control: no-cache, no-store, must-revalidate
Content-Type: application/json
Strict-Transport-Security: max-age=315360000; includeSubDomains; preload
Date: Thu, 27 Jan 2022 20:28:40 GMT
ATL-TraceId: 08513d1914924ded
expires: Thu, 01 Jan 1970 00:00:00 GMT
X-XSS-Protection: 1; mode=block
Transfer-Encoding: chunked
x-envoy-upstream-service-time: 42
X-Content-Type-Options: nosniff
ATL-Confluence-Via: h:confluence-prod-us-7-3.prod.atl-paas.net
Expect-CT: report-uri="https://web-security-reports.services.atlassian.com/expect-ct-report/global-proxy", enforce, max-age=86400
Connection: Keep-Alive
{"message":"Current user not permitted to use Confluence","statusCode":403}
Hi Anna,
I think you might be hitting a known performance problem with the PDF export.
There are a couple of options to improve the situation:
I hope this helps
We'll try these options. Thanks for the help!
Hopefully, this is an issue that can be fully resolved in the future.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
UPDATE: The upgrade to v5.3 aided in speeding up the conversion process, which still breaks. However, I found out it is breaking due to some formatting issues in addition to the size of the space (400+ pages), because it works in smaller chunks. Still, it works faster now and it does output PDF files. I am happy to say that I was able to identify the formatting issue and should have full space PDFs output soon. Thanks again for the help!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Anna, could you pls leave a hint regarding the formatting issue? I think we might have a similar problem. Thank You! :-) Pit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Too many indentations. I have to go back through the docs and reformat. I had copied and pasted whole sections from our online source and it copied in metadata that added numerous indentations. I will be revisiting that document this month, and if I think of it I will comment here about whether it is fixed.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Many THX for your quick answer - your help is very much appreciated. :-) For some strange reason today my export was successful after 3 hours (pdf size: 526 MB for 2539 pages)...without any heap size changes. We will test Olli's heap size solution anyway to test performance. (Confluence 5.1.3)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Pit Fischer Know it's been a long time, but did the export hang at 50% for most of those three hours? I'm trying to figure out if I should give up and plan a restart or not. I've been at 50% and on page 1 for over an hour. I've 16G on the heap with 33% free running confluence 5.8.6. My guess is that some temp file blocks successful export. I'm waiting to hear back from Atlassian support before scheduling a restart.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.