googledrive icon indicating copy to clipboard operation
googledrive copied to clipboard

Stuck in curl::curl_fetch_memory

Open dimidloc opened this issue 2 years ago • 1 comments

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.

dimidloc avatar Oct 03 '21 14:10 dimidloc

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.

Serenthia avatar Jan 24 '22 16:01 Serenthia