line / conflr

Post R Markdown documents to Confluence
https://line.github.io/conflr/
GNU General Public License v3.0
130 stars 28 forks source link

403 forbidden #153

Closed stefanoallima closed 2 years ago

stefanoallima commented 2 years ago

I was trying to post a rmarkdown but recently i got the following error i executed the following: rlang::last_trace()

output end of blob

<!-- .aui-page-header-inner --></header><!-- .aui-page-header --><div class="aui-message aui-message-warning warning">
                            <p>Encountered a <code>"403 - Forbidden"</code> error while loading this page.</p>
                            <p><a href="/secure/MyJiraHome.jspa">Go to Jira home</a></p>
                        </div>
                </section><!-- .aui-page-panel-content -->
</div>
<!-- .aui-page-panel-inner -->
</div>
<!-- .aui-page-panel -->
</body>
</html>

Backtrace: ▆

  1. └─conflr:::confl_create_post_from_Rmd_addin()
  2. └─conflr::confl_create_post_from_Rmd(Rmd_file, interactive = TRUE)
  3. └─rmarkdown::render(...)
  4. └─output_format$pre_knit(input = original_input)
  5. ├─base::tryCatch(...)
  6. │ └─base tryCatchList(expr, classes, parentenv, handlers)
  7. │ └─base tryCatchOne(expr, names, parentenv, handlers[[1L]])
  8. │ └─base doTryCatch(return(expr), name, parentenv, handler)
  9. └─conflr::confl_get_current_user()
    1. └─conflr:::confl_verb("GET", "/user/current", query = purrr::compact(query))
    2. └─rlang::abort(...)
yutannihilation commented 2 years ago

Hi, is CONFLUENCE_URL configured correctly?

stefanoallima commented 2 years ago

Thanks for following up. i added the wiki and it solved my issue

/wiki

https://company_domain.atlassian.net/wiki

The issue can be closed

yutannihilation commented 2 years ago

Great! It's a common pitfall on Atlassian Cloud.