Closed aculham closed 1 year ago
It's hard to say exactly what's going on. But it sort of looks like the upload was unsuccessful AND the attempt to message informatively about that is erroring. So possibly an error while throwing an error.
When this happen, has the upload worked? I suspect not.
Right after this happens gargle should have the last response stored internally available via gargle:::gargle_last_response()
(note the triple colons, this is not an exported function). That should allow you to fully inspect the response and see why the upload failed (which is my hypothesis). Then there's the matter of figuring out why the intended error handling is not working.
Hopefully this gets you started on some troubleshooting.
I would also double check that you are using the most recent CRAN versions of all relevant packages (gargle and cli and googledrive, most especially).
Thank you for your comment, it was very helpful. Using gargle:::gargle_last_response()
allowed me to see that I am getting a Status 429 error which means I have sent too many requests. I think this also explains why the issue is transient and not reproducible. I don't understand why I am getting that error, but that is not a problem in the package.
Well, we should still be surfacing that error properly. If you would be willing to send me the error object (to my maintainer email), I'd be very interested in inspecting it and figuring out how it violates our expectations and fixing that.
I sent you an email.
In the last couple of days I have started to see some transient errors upon uploading a file to Google Drive via the googledrive package. The errors seem to be originating in the gargle package, which is why I am posting this here. Unfortunately, I cannot provide a reproducible example since the error doesn't happen every time. I am unable to identify any pattern in when it fails or doesn't. Below is the error and traceback. Any advice would be appreciated.