-
Notifications
You must be signed in to change notification settings - Fork 48
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
problem w/ curl 2.4 #154
Comments
Don't pass zero-width characters for record, field, or event. Closes #154
Summary: devtools::install_github(repo="OuhscBbmc/REDCapR") Details: example: (inside files like redcap-read-oneshot.R) post_body <- list(
token = token,
content = 'record',
format = 'csv',
type = 'eav',
rawOrLabel = raw_or_label,
exportDataAccessGroups = export_data_access_groups_string,
# records = records_collapsed,
# fields = fields_collapsed,
# events = events_collapsed,
filterLogic = filter_logic
)
if( nchar(records_collapsed) > 0 ) post_body$records <- records_collapsed
if( nchar(fields_collapsed ) > 0 ) post_body$fields <- fields_collapsed
if( nchar(events_collapsed ) > 0 ) post_body$events <- events_collapsed Once things settle down with curl (or maybe one of the underlying libraries that was just updated), I'll see if there's a more concise solution. We'll then release to CRAN. |
I believe something in the new version of the
curl
package released this weekend is causing problems with REDCapR. I'm diagnosing things now.Typically, you can revert to 2.3 of curl with this line of code:
However, just now, I had to download the tar.gz from the archive and install it manually through RStudio.
I'm looking at the development versions of curl and httr now, and get report when I figure out something. Any tips in the meantime are welcome.
update 10:24am: all the dev httr (master branch on GitHub) checks pass on my computer.
update 10:46am: the problem is retrieving the content through httr:
The
result
list object used to have something in thecontent
element (specifically, the bytes of each of the 1270 characters in the first example ofredcap_read_oneshot()
):But now it contains only a line ending:
The text was updated successfully, but these errors were encountered: