Skip to content

Confluence publish fails - empty body return is not properly handled #13414

@m1no

Description

@m1no

I have:

  • searched the issue tracker for similar issues
  • installed the latest version of Quarto CLI
  • formatted my issue following the Bug Reports guide

Bug description

Publishing documents to Atlassian Cloud confluence with the current quarto version (1.8.24) results in an SyntaxError exception during the canSetPermissions routine.

Steps to reproduce

Create a simple confluence project and try to publish to any Atlassian Confluence space.

Actual behavior

$ export QUARTO_PRINT_STACK=true
$ quarto publish --profile confluence confluence documents
? Publish update to: › https://redacted.atlassian.net/wiki/spaces/~redacted/pages/1/README (Confluence)
? Publish with account: › [email protected] (https://redacted.atlassian.net/)
[✓] Verifying...
ERROR: SyntaxError: Unexpected end of JSON input

Stack trace:
    at parse (<anonymous>)
    at packageData (ext:deno_fetch/22_body.js:421:14)
    at consumeBody (ext:deno_fetch/22_body.js:274:12)
    at eventLoopTick (ext:core/01_core.js:178:7)
    at async ConfluenceClient.canSetPermissions (file:///opt/quarto/bin/quarto.js:157143:7)
    at async verifyOrWarnManagePermissions (file:///opt/quarto/bin/quarto.js:157350:32)
    at async Object.publish5 [as publish] (file:///opt/quarto/bin/quarto.js:157488:3)
    at async publishSite (file:///opt/quarto/bin/quarto.js:158599:38)
    at async publish7 (file:///opt/quarto/bin/quarto.js:158935:58)
    at async doPublish (file:///opt/quarto/bin/quarto.js:158882:7)

Expected behavior

Succesfully publishing my documents to confluence

Your environment

Linux Ubuntu Devcontainer
image: mcr.microsoft.com/devcontainers/base:noble
running on Linux Ubuntu 25.04 docker-ce 5.28:4

Quarto check output

$ quarto check
Quarto 1.8.24
[✓] Checking environment information...
      Quarto cache location: /home/vscode/.cache/quarto
[✓] Checking versions of quarto binary dependencies...
      Pandoc version 3.6.3: OK
      Dart Sass version 1.87.0: OK
      Deno version 2.3.1: OK
      Typst version 0.13.0: OK
[✓] Checking versions of quarto dependencies......OK
[✓] Checking Quarto installation......OK
      Version: 1.8.24
      Path: /opt/quarto/bin

[✓] Checking tools....................OK
      TinyTeX: (not installed)
      Chromium: (not installed)

[✓] Checking LaTeX....................OK
      Using: Installation From Path
      Path: /usr/bin
      Version: 2023

[✓] Checking Chrome Headless....................OK
      Chrome:  (not detected)

[✓] Checking basic markdown render....OK

[✓] Checking Python 3 installation....OK
      Version: 3.13.7
      Path: /usr/local/python/current/bin/python
      Jupyter: 5.8.1
      Kernels: python3

[✓] Checking Jupyter engine render....OK

[✓] Checking R installation...........(None)

      Unable to locate an installed version of R.
      Install R from https://cloud.r-project.org/

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingpublishing-confluenceConfluence publishing of documents and projects

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions