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

Intermittent duplicates in drive_ls() #272

Closed
andrie opened this issue Sep 2, 2019 · 8 comments
Closed

Intermittent duplicates in drive_ls() #272

andrie opened this issue Sep 2, 2019 · 8 comments

Comments

@andrie
Copy link

andrie commented Sep 2, 2019

I get intermittent errors when using drive_ls() on one of my folders.

library(googledrive)
drive_auth(email = "my_email")
drive_ls("~/some/folder/")
#> Error in add_id_path(nodes, root_id = root_id, leaf = leaf): 
#> !anyDuplicated(nodes$id) is not TRUE

For some strange reason, this fails most of the time, but sporadically succeeds, in the same folder!

PR to follow.

andrie added a commit to andrie/googledrive that referenced this issue Sep 2, 2019
@davidmasp
Copy link

I also got this problem, it was very puzzling...

@jennybc
Copy link
Member

jennybc commented Sep 13, 2019

Can anyone describe the situation in a bit more detail? It's very hard for me to figure out the source of the duplication (is it us or google?) without knowing this.

@davidmasp
Copy link

how can we test it? happy to help but I am not sure what's the cause either, sorry. I can confirm that after installing the PR from @andrie the issue was fixed though.

@jennybc
Copy link
Member

jennybc commented Sep 13, 2019

I’m wondering if it affects, E.g., a file with more than 1 parent directory. Or a file that shares the same name with a distinct file in the same folder. That sort of thing. Both are possible on Drive.

@andrie
Copy link
Author

andrie commented Sep 14, 2019

I moved some of my files on Google Drive, and now I can no longer replicate the issue.

@jennybc
Copy link
Member

jennybc commented Jan 14, 2020

I still have yet to experience this phenomenon or get enough data to truly study it.

But I have formed an untestable hypothesis about the root cause and installed a fix 🤞

Needless to say, please open a new issue if you update to this dev version and still see the phenomenon.

@cisoto
Copy link

cisoto commented Jun 3, 2020

I did something that worked for me.
I was not sure if tokens were still alive, so i refreshed them just before calling the file_cp, or file_mv, or file_whatever.
I do not understand the behaviour of the Auth system, but sure the solution is there

@jennybc
Copy link
Member

jennybc commented Jun 3, 2020

I'm skeptical this is related to auth.

It's intermittent for everyone, which makes it easy to falsely attribute success to something that's a coincidence.

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

Successfully merging a pull request may close this issue.

4 participants