Hey all,
I have data centre behind an `Identity Access Management provider`. I'm trying to download an attachment using a confluence link.
https://{domain-name}/download/attachments/{Page-id}/{attachment-name.png}
The curl request:
curl --location --request GET
'https://{domain-name}/download/attachments/{Page-id}/{attachment-name.png}' \
--header 'Authorization: Bearer TOKEN' \
When I try to open the downloaded attachment, it redirects me to the `Identity Access Management` page showing error `There was an unexpected internal error`.
I have allowed the IPs in `Identity Access Management provider` and I am able to successfully retrieve the page content with the API but downloading the attachments are failing.
@vijayendra welcome to the Atlassian community
What happens if you login first using the identity access management is a browser then go to the link, are you able to download it? Also what are you seeing in the logs?
I identified the issue. We had to whitelist the IPs in Confluence from which the request was originating and also the attachment endpoint which we are using to download.
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.