Plumber shared secret mismatch and version updates

My API has been running okay out of RStudio Connect for weeks, but Friday I was informed it is down. I checked the logs and saw the same error message as shared secret mismatches throw errors · Issue #808 · rstudio/plumber · GitHub . "The provided shared secret did not match expected secret."

I installed the newest version of plumber from GitHub and restarted R. Previously I could view my API with swagger, but now the swagger window just reads {"error":["404 - Resource Not Found"]} .

I didn't make any changes to my API that would cause it to stop working. It is sitting on the company RStudio server and the server was last updated a couple months ago.

Initially, the inability to access the API may have been on the consuming end. I'm not totally sure that error was stopping the API from being accessed. But after trying to update Plumber, something is definitely broken and I can no longer get output locally.

Here is my session info:

version R version 4.0.2 (2020-06-22)
os CentOS Linux 7 (Core)
system x86_64, linux-gnu
ui RStudio
language (EN)
collate en_GB.UTF-8
ctype en_GB.UTF-8
tz Europe/London
date 2021-07-16

─ Packages ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
! package * version date lib source
askpass 1.1 2019-01-13 [1] RSPM (R 4.0.2)
assertthat 0.2.1 2019-03-21 [1] RSPM (R 4.0.2)
backports 1.1.8 2020-06-17 [1] RSPM (R 4.0.2)
callr 3.4.3 2020-03-28 [1] RSPM (R 4.0.2)
cli 2.0.2 2020-02-28 [1] RSPM (R 4.0.2)
colorspace 1.4-1 2019-03-18 [1] RSPM (R 4.0.2)
crayon 1.3.4 2017-09-16 [1] RSPM (R 4.0.2)
curl 4.3 2019-12-02 [1] RSPM (R 4.0.2)
digest 0.6.25 2020-02-23 [1] RSPM (R 4.0.2)
dplyr * 1.0.0 2020-05-29 [1] RSPM (R 4.0.2)
ellipsis 0.3.1 2020-05-15 [1] RSPM (R 4.0.2)
fansi 0.4.1 2020-01-08 [1] RSPM (R 4.0.2)
generics 0.0.2 2018-11-29 [1] RSPM (R 4.0.2)
ggplot2 3.3.2 2020-06-19 [1] RSPM (R 4.0.2)
glue 1.4.1 2020-05-13 [1] RSPM (R 4.0.2)
gtable 0.3.0 2019-03-25 [1] RSPM (R 4.0.2)
hms 0.5.3 2020-01-08 [1] RSPM (R 4.0.2)
httpuv 1.5.4 2020-06-06 [1] RSPM (R 4.0.2)
jsonlite 1.6.1 2020-02-02 [1] RSPM (R 4.0.2)
later 1.1.0.1 2020-06-05 [1] RSPM (R 4.0.2)
lattice 0.20-41 2020-04-02 [2] CRAN (R 4.0.2)
lifecycle 0.2.0 2020-03-06 [1] RSPM (R 4.0.2)
magrittr 1.5 2014-11-22 [1] RSPM (R 4.0.2)
Matrix 1.2-18 2019-11-27 [2] CRAN (R 4.0.2)
munsell 0.5.0 2018-06-12 [1] RSPM (R 4.0.2)
openssl 1.4.1 2019-07-18 [1] RSPM (R 4.0.2)
pillar 1.4.4 2020-05-05 [1] RSPM (R 4.0.2)
pkgbuild 1.0.8 2020-05-07 [1] RSPM (R 4.0.2)
pkgconfig 2.0.3 2019-09-22 [1] RSPM (R 4.0.2)
V plumber * 0.4.6 2021-07-16 [1] Github (rstudio/plumber@9e7265d)
prettyunits 1.1.1 2020-01-24 [1] RSPM (R 4.0.2)
processx 3.4.2 2020-02-09 [1] RSPM (R 4.0.2)
promises 1.1.1 2020-06-09 [1] RSPM (R 4.0.2)
ps 1.3.3 2020-05-08 [1] RSPM (R 4.0.2)
purrr 0.3.4 2020-04-17 [1] RSPM (R 4.0.2)
R6 2.4.1 2019-11-12 [1] RSPM (R 4.0.2)
Rcpp 1.0.4.6 2020-04-09 [1] RSPM (R 4.0.2)
readr * 1.3.1 2018-12-21 [1] RSPM (R 4.0.2)
remotes 2.1.1 2020-02-15 [1] RSPM (R 4.0.2)
rlang 0.4.6 2020-05-02 [1] RSPM (R 4.0.2)
rprojroot 1.3-2 2018-01-03 [1] RSPM (R 4.0.2)
rsconnect 0.8.16 2019-12-13 [1] RSPM (R 4.0.2)
rstudioapi 0.11 2020-02-07 [1] RSPM (R 4.0.2)
scales 1.1.1 2020-05-11 [1] RSPM (R 4.0.2)
sessioninfo 1.1.1 2018-11-05 [1] RSPM (R 4.0.2)
stringi 1.4.6 2020-02-17 [1] RSPM (R 4.0.2)
tibble 3.0.1 2020-04-20 [1] RSPM (R 4.0.2)
tidyselect 1.1.0 2020-05-11 [1] RSPM (R 4.0.2)
vctrs 0.3.1 2020-06-05 [1] RSPM (R 4.0.2)
withr 2.2.0 2020-04-20 [1] RSPM (R 4.0.2)

Try /__docs__/ endpoint instead of /__swagger__/

Set the API visual documentation — pr_set_docs • plumber (rplumber.io)

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.