Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stuck in curl::curl_fetch_memory #376

Open
dimidloc opened this issue Oct 3, 2021 · 1 comment
Open

Stuck in curl::curl_fetch_memory #376

dimidloc opened this issue Oct 3, 2021 · 1 comment

Comments

@dimidloc
Copy link

dimidloc commented Oct 3, 2021

Hi,

Sometimes, I try to upload a file via googledrive::drive_upload() and it's stuck in curl::curl_fetch_memory(). Here's the full trace:

Error in curl::curl_fetch_memory(url, handle = handle) : 
  Operation was aborted by an application callback 
10.
curl::curl_fetch_memory(url, handle = handle) 
9.
request_fetch.write_memory(req$output, req$url, handle) 
8.
request_fetch(req$output, req$url, handle) 
7.
request_perform(req, hu$handle$handle) 
6.
method(url = x$url, body = x$body, x$token, encode = encode, 
    user_agent, ...) 
5.
gargle::request_make(x, ..., user_agent = drive_ua()) 
4.
request_make(request, encode = "multipart") 
3.
googledrive::drive_upload(temp_file, type = "spreadsheet", name = name, 
    ...) at utils.R#306

This happens even after drive_deauth(), followed by drive_auth() and granting the browser permissions.

Versions:

> packageVersion('gargle')
[1] '1.2.0'
> packageVersion('googledrive')
[1] '2.0.0'

I've also tried to clear the cache by
rm ~/Library/Caches/gargle/*, to no avail.

Surprisingly, googlesheets4::gs4_create() works flawlessly.

@Serenthia
Copy link

Just a note that I've come here seeing exactly this as well. Other functions (in both googledrive and googlesheets4) work fine with the same auth.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants