Skip to content
This repository has been archived by the owner on Jul 17, 2023. It is now read-only.

error during uploading of images #143

Open
HarlanH opened this issue Nov 11, 2021 · 1 comment
Open

error during uploading of images #143

HarlanH opened this issue Nov 11, 2021 · 1 comment

Comments

@HarlanH
Copy link

HarlanH commented Nov 11, 2021

Hi, I'm getting this error. The setup used to work fine:

Checking the existing images...
Uploading the images...
Error: Error in paste(httr::http_condition(res, type = "error"), httr::content(res)): Internal Server Error (HTTP 500).
 500
* Error in paste(httr::http_condition(res, type = "error"), httr::content(res)): Internal Server Error (HTTP 500).
 com.atlassian.confluence.pages.persistence.dao.filesystem.AttachmentDataFileSystemException: Could not assign collection for attachment: 2867986542
Backtrace:
    █
 1. └─rmarkdown::render(...)
 2.   └─output_format$post_processor(...)
 3.     ├─rlang::exec(...)
 4.     └─(function (title, space_key, type, parent_id, html_text, imgs, ...
 5.       └─conflr::confl_post_attachment(id, imgs_realpath[i])
 6.         └─conflr:::confl_verb(...)
Execution halted

I've confirmed that the PNG files exist as expected. What might be going on?

@lukocius
Copy link

lukocius commented Jan 18, 2022

attachment limit is effectively hardcoded to 50. If there are more, this error is expected.
In confl_list_attachments

# Check if the images already exist
imgs_exist <- confl_list_attachments(id)
imgs_exist_ids <- purrr::map_chr(imgs_exist$results, "id")
names(imgs_exist_ids) <- purrr::map_chr(imgs_exist$results, "title")

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants