karthik / karthik/rdrop2

oauth_listener() needs an interactive environment

Open
#64 2 comments 0 reactions 0 assignees View on GitHub
bug rdrop-0.7
Dominant language
R
Stars
253
Forks
60
PR merge metrics
No merged PRs in 30d

Description

I built a Shiny application with an action button which downloads pdfs hosted in a Dropbox folder. It uses:

drop_media(): to generate the link to download the specific pdf file
browseURL(): to access the generated link

It works perfectly on my computer. However, when I publish it, the download function does not work and I get the following message: Disconnected from the server. Reload.

Looking at the log file, it throws the following error: Warning: Error in : oauth_listener() needs an interactive environment.

I´m a beginner on this type of applications. The Dropbox token is placed on the main directory, and published with the rest of the files.

The application connects successfully to the Dropbox folder in other parts of the code(global.r, server.r), but where it gets stucked is in this one:

```
fndownload=eventReactive(input$downloadpdf,{
urr=drop_media("example.pdf", dtoken=token)
urr$url
})

observeEvent(input$downloadpdf, {
browseURL(fndownload())
})
```

Originnaly, the fndownload function was within the obserEvent but I got the same error as well.

There is not much information regarding remote storage Dropbox Shiny applications, but quite few threads regarding the same issue with other remote storage platforms (e.g. gsheets).

Any help will be awesome. Regards

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.