Closed juliasilge closed 3 years ago
The root cause is that the function board_rsconnect()
constructs the server URL from hostname
+ __api__
. However, this ignores the fact that the full domain name can contain hostname
+ path
+ __api__
.
For example, if the real server is at colorado.rstudio.com/rsc
, then the API endpoint is at colorado.rstudio.com/rsc/__api__
, but the current code base ignores the /rsc
path.
One solution to this is to use rsconnect::serverInfo()
to construct the URL, like this:
url <- rsconnect::serverInfo(name = server)$url
instead of the current:
url <- paste0(server, "/__api__/") # remember to delete this line
I'll prepare a PR.
This issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with a reprex: https://reprex.tidyverse.org) and link to this issue.
I am using the current dev version of the package and can use
pin_write()
andpin_list()
just fine, but am having trouble withpin_read()
because this line inpin_meta.pins_board_rsconnect
gives a 404:https://github.com/rstudio/pins/blob/322b3df464202ef3a4726cded3f1a549cefef11c/R/board_rsconnect.R#L249
Created on 2021-06-23 by the reprex package (v2.0.0)
This happens for all pins I try to read. If I try to read again, I get a different error because
data.txt
has been saved with HTML in it.