Skip to content

showLogs Error in GET() failed with HTTP status 501 #1294

@alvarosantamariagomez

Description

@alvarosantamariagomez

Description

Hi,
showLogs fails to download the log of my app from shinyapps.io
I'm not using streaming, so not sure if the problem is related to the recently removed support for log streaming from shinyapps.io.

This is the command I'm using
rsconnect::showLogs(appName = "sari", streaming = FALSE, entries = 100)

This is the console output

Error in `GET()`:
! <https://api.shinyapps.io/v1/applications/293355/logs?count=100&tail=0> failed with HTTP status 501
Not Implemented
---
Backtrace:
    ▆
 1. └─rsconnect::showLogs(appName = "sari", streaming = FALSE, entries = 100)
 2.   └─client$getLogs(application$id, entries)
 3.     └─rsconnect:::GET(service, authInfo, path, query)
 4.       └─rsconnect:::httpRequest(...)
 5.         └─rsconnect:::handleResponse(...)
 6.           └─rsconnect (local) reportError(unlist(json$error), errorType = unlist(json$error_type))
 7.             └─cli::cli_abort(...)
 8.               └─rlang::abort(...)

sessionInfo gives

R version 3.5.2 (2018-12-20)
Platform: arm-unknown-linux-gnueabihf (32-bit)
Running under: Raspbian GNU/Linux 10 (buster)

Matrix products: default
BLAS: /usr/lib/arm-linux-gnueabihf/blas/libblas.so.3.8.0
LAPACK: /usr/lib/arm-linux-gnueabihf/lapack/liblapack.so.3.8.0

locale:
 [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C
 [3] LC_TIME=en_US.UTF-8        LC_COLLATE=en_US.UTF-8
 [5] LC_MONETARY=en_US.UTF-8    LC_MESSAGES=en_US.UTF-8
 [7] LC_PAPER=en_US.UTF-8       LC_NAME=C
 [9] LC_ADDRESS=C               LC_TELEPHONE=C
[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C

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

other attached packages:
[1] rsconnect_1.7.0

loaded via a namespace (and not attached):
 [1] compiler_3.5.2  cli_3.6.1       tools_3.5.2     curl_5.1.0
 [5] jsonlite_1.8.7  digest_0.6.33   lifecycle_1.0.3 openssl_2.1.1
 [9] rlang_1.1.1     askpass_1.2.0

Your environment

No response

Metadata

Metadata

Assignees

Labels

bugan unexpected problem or unintended behavior

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions