-
Notifications
You must be signed in to change notification settings - Fork 19
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
client error: (422) Unprocessable Entity (WebDAV; RFC 4918) #41
Comments
@cpsievert you have a folder in that directory, which i think is what causes the problem. |
@cpsievert what would you want to have happen with a folder ? e.g., recursive behavior so that all files in a folder are pushed up? Or if a folder is found, skip it? |
whoops, sorry about that, maybe you could add a check at the start of if (any(file_test("-d", files))) stop("Can't upload directories as a gist.) ? |
Yeah, that sounds good to stop if a folder is found, other than this issue, I think this should work even with the hundreds of files you have in your e.g. |
Yea, I forgot that in |
thanks 👍 |
added checks to |
Thanks, I think it's safe to close this. |
cool, thanks for bringing this up |
No prob, I flattened the file structure and now I get this error: Error: Validation Failed
resource: Gist
code: missing_field
field: files
In addition: Warning message:
In max(b) : no non-missing arguments to max; returning -Inf Perhaps I've hit the limit on the number of files? Shall we migrate to another issue? |
i'll try it again, and see if it's a diff. problem... 🕐 |
@cpsievert that warning For the large number of files you have I think using git will be much easier and faster. Have you tried that? Is it do-able for your use case? Using |
Got it, thanks, I'll think about using git2r in animint instead (I didn't know it was on CRAN!) |
yeah, so nice that it's on cran now |
Sorry this isn't really a minimal example, but I'm not sure of a good way to reduce it:
The text was updated successfully, but these errors were encountered: