401 error invalid authentication

I am trying to deploy an app on shinyapps dot io but it's giving me 401 error invalid authentication. The code works well in my local.

I am not using any authentication in the code. All files are present on my local.

Below is the screenshot of the error. I can see the app behind the error.

image

The logs does not have any error.

Below is the session detail.

sessionInfo()
R version 4.3.3 (2024-02-29 ucrt)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 11 x64 (build 22631)

Matrix products: default

locale:
[1] LC_COLLATE=English_United States.utf8 LC_CTYPE=English_United States.utf8 LC_MONETARY=English_United States.utf8
[4] LC_NUMERIC=C LC_TIME=English_United States.utf8

time zone: Asia/Calcutta
tzcode source: internal

attached base packages:
[1] stats graphics grDevices utils datasets methods base

loaded via a namespace (and not attached):
[1] compiler_4.3.3 cli_3.6.3 rsconnect_1.3.3 tools_4.3.3 rstudioapi_0.17.1 curl_6.0.1
[7] jsonlite_1.8.9 digest_0.6.37 lifecycle_1.0.4 renv_1.0.11 openssl_2.2.2 rlang_1.1.4
[13] askpass_1.2.1

The image is a bit unreadable. What is the full URL at the bottom (starts with "docs.")?

It is stadiamaps.com . Per Authentication - Stadia Maps Documentation you don't need authentication when running locally, but do if you deploy. R: Register a Stadia Maps API Key has details on how to obtains a key and use it in R.

1 Like