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

When running conflr:::confl_create_post_from_Rmd_addin() get Error: Error in paste(httr::http_condition(res, type = "error"), httr::content(res)): Not Found (HTTP 404). #122

Open GavinCameron opened 4 years ago

GavinCameron commented 4 years ago

When trying to run the confl add on via rstudio add in menu, I see this code run in the console:

conflr:::confl_create_post_from_Rmd_addin()

However, I am getting an error and no popup appears:

> conflr:::confl_create_post_from_Rmd_addin()
Error: Error in paste(httr::http_condition(res, type = "error"), httr::content(res)): Not Found (HTTP 404).
 null for uri: https://confluence.glu.com/rest/api/user/current
* Error in paste(httr::http_condition(res, type = "error"), httr::content(res)): Not Found (HTTP 404).
 404

Also:

rlang::last_error()
<error/rlang_error>
Error in paste(httr::http_condition(res, type = "error"), httr::content(res)): Not Found (HTTP 404).
 null for uri: https://confluence.glu.com/rest/api/user/current
* Error in paste(httr::http_condition(res, type = "error"), httr::content(res)): Not Found (HTTP 404).
 404
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)
  9. conflr::confl_get_current_user()
 10. conflr:::confl_verb("GET", "/user/current", query = purrr::compact(query))

I tried searching for this error but could not find any results.

Note we are using Confluence version 5.8.18, if relevant.

stevegbrooks commented 4 years ago

Maybe its a problem with your CONFLUENCE_URL setting? I got this error until I realized I had to just enter the base URL of my companies confluence site, e.g., "https://confluence.company.com"

GavinCameron commented 4 years ago

I do have our base URL in my .Renviron file: CONFLUENCE_URL="https://confluence.[ourname].com"

Stephonomon commented 3 years ago

Ever find a solution?

GavinCameron commented 3 years ago

@Stephonomon I did not but the suspect hypothesis is that we have firewall around our Confluence that is accessed via sso. Makes sense that I could not access but whether or not that's what caused the specific error or not I'm unsure.

Stephonomon commented 3 years ago

Ah. Same here.

On Tue, May 4, 2021 at 4:41 PM GavinCameron @.***> wrote:

@Stephonomon https://github.com/Stephonomon I did not but the suspect hypothesis is that we have firewall around our Confluence that is accessed via sso. Makes sense that I could not access but whether or not that's what caused the specific error or not I'm unsure.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/line/conflr/issues/122#issuecomment-832231046, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACK736NBVW6L3HK7ZU3SEP3TMBLWVANCNFSM4PVANZRA .

cristinapasi-kantox commented 3 years ago

Check your URL (confluence-base-url), I had the same problem until I realised that the Confluence url was "https://confluence.[ourname].com/wiki".