Comments (4)
Could you provide a reproducible example? This seems an issue of compatibility with the new editor format, but I can't figure out what's happening without knowing the details.
from conflr.
In my case, the problem appears when I add caption
to knitr::kable()
. Without the caption
argument the function works as expected.
---
title: "Conflr debug"
author: "Alexander Matrunich"
date: '`r format(Sys.Date(), "%d %B, %Y")`'
output:
conflr::confluence_document:
parent_id: "000000"
space_key: "YYYYY"
update: true
code_folding: hide
toc: false
---
Hello!
```{r testchunk, warning=FALSE}
cars |>
knitr::kable(
caption = "Table caption",
digits = 3
)
\```
processing file: conflr_debug.Rmd
output file: conflr_debug.knit.md
Checking the existing images...
Uploading the images...
Uploading the document...
Error: Error in paste(httr::http_condition(res, type = "error"), httr::content(res)): Bad Request (HTTP 400).
400
* Error in paste(httr::http_condition(res, type = "error"), httr::content(res)): Bad Request (HTTP 400).
list(authorized = FALSE, valid = TRUE, errors = list(), successful = FALSE)
* Error in paste(httr::http_condition(res, type = "error"), httr::content(res)): Bad Request (HTTP 400).
com.atlassian.confluence.api.service.exceptions.BadRequestException: Content body cannot be converted to new editor format
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_update_page(id = id, title = title, body = html_text)
6. └─conflr:::confl_verb(...)
Execution halted
from conflr.
Thanks for the reproducible example!! This is really helpful.
from conflr.
Hi I am getting a similar error when I try to upload an RNotebook, no captions in
processing file: tmag5170_error.Rmd
|.. | 4%
ordinary text without R code
|.... | 8%
label: unnamed-chunk-1 (with options)
List of 1
$ echo: logi FALSE
|...... | 12%
label: unnamed-chunk-2 (with options)
List of 1
$ echo: logi FALSE
|........ | 15%
ordinary text without R code
|.......... | 19%
label: unnamed-chunk-3 (with options)
List of 1
$ echo: logi FALSE
|............ | 23%
ordinary text without R code
|.............. | 27%
label: unnamed-chunk-4 (with options)
List of 2
$ echo : logi FALSE
$ results: chr "hide"
|................ | 31%
ordinary text without R code
|.................. | 35%
label: unnamed-chunk-5 (with options)
List of 2
$ echo : logi FALSE
$ results: chr "hide"
|.................... | 38%
ordinary text without R code
|...................... | 42%
label: unnamed-chunk-6 (with options)
List of 1
$ echo: logi FALSE
|........................ | 46%
ordinary text without R code
|.......................... | 50%
label: unnamed-chunk-7 (with options)
List of 1
$ echo: logi FALSE
|........................... | 54%
label: unnamed-chunk-8 (with options)
List of 2
$ echo : logi FALSE
$ results: chr "hide"
|............................. | 58%
ordinary text without R code
|............................... | 62%
label: unnamed-chunk-9 (with options)
List of 2
$ echo : logi FALSE
$ results: chr "hide"
|................................. | 65%
ordinary text without R code
|................................... | 69%
label: unnamed-chunk-10 (with options)
List of 1
$ echo: logi FALSE
|..................................... | 73%
label: unnamed-chunk-11 (with options)
List of 2
$ echo : logi FALSE
$ results: chr "hide"
|....................................... | 77%
ordinary text without R code
|......................................... | 81%
label: unnamed-chunk-12 (with options)
List of 2
$ echo : logi FALSE
$ results: chr "hide"
|........................................... | 85%
label: unnamed-chunk-13 (with options)
List of 2
$ echo : logi FALSE
$ results: chr "hide"
|............................................. | 88%
ordinary text without R code
|............................................... | 92%
label: unnamed-chunk-14 (with options)
List of 2
$ echo : logi FALSE
$ results: chr "hide"
|................................................. | 96%
ordinary text without R code
|...................................................| 100%
label: unnamed-chunk-15 (with options)
List of 2
$ echo : logi FALSE
$ results: chr "hide"
output file: tmag5170_error.knit.md
/Applications/RStudio.app/Contents/MacOS/pandoc/pandoc +RTS -K512m -RTS tmag5170_error.knit.md --to commonmark-yaml_metadata_block --from markdown+autolink_bare_uris-tex_math_single_backslash-tex_math_dollars-raw_tex --output tmag5170_error.md --wrap=none
Loading required package: shiny
Listening on http://127.0.0.1:7883
Warning: Error in : Error in paste(httr::http_condition(res, type = "error"), httr::content(res)): Bad Request (HTTP 400).
400
- Error in paste(httr::http_condition(res, type = "error"), httr::content(res)): Bad Request (HTTP 400).
list(authorized = FALSE, valid = TRUE, errors = list(), successful = FALSE) - Error in paste(httr::http_condition(res, type = "error"), httr::content(res)): Bad Request (HTTP 400).
com.atlassian.confluence.api.service.exceptions.BadRequestException: Content body cannot be converted to new editor format
59:
from conflr.
Related Issues (20)
- error during uploading of images HOT 1
- How can I publish R package documentation to confluence HOT 4
- Issue 'Base URL of Confluence API' "Error : ! Invalid credentials" RStudio HOT 2
- post to confluence from html HOT 3
- Including interactive network map with visNetwork? HOT 1
- Error rendering macro 'code' HOT 1
- Is it possible to programmatically untick "notify watchers" when posting to confluence? HOT 3
- `code_folding: hide` is not folding code HOT 2
- 403 forbidden HOT 3
- read html file as `body` in `conflr::confl_update_page()` HOT 2
- Rmarkdown upload with interactive plots HOT 2
- Fix for inline maths/ list elements not getting translated
- Invalid credentials / no access with personal access token
- add R markdown template
- Quarto support HOT 1
- Links to headings
- How to create links to top of the document?
- scrollbars on wide tables? HOT 1
- DT::datatable only shows header HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from conflr.