conflr icon indicating copy to clipboard operation
conflr copied to clipboard

error during uploading of images

Open HarlanH opened this issue 2 years ago • 1 comments

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?

HarlanH avatar Nov 11 '21 16:11 HarlanH

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

https://github.com/line/conflr/blob/0ef4cfefb6163ee42044cab5f2a7637556240ea8/R/addin-internals.R#L63-L66

lukocius avatar Jan 18 '22 15:01 lukocius