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

Test with new httr #11

Closed
richfitz opened this issue Jun 10, 2015 · 10 comments
Closed

Test with new httr #11

richfitz opened this issue Jun 10, 2015 · 10 comments
Labels

Comments

@richfitz
Copy link
Member

From: Hadley Wickham h.wickham@gmail.com
Date: Wed, Jun 10, 2015, 9:48 AM
Subject: httr 1.0.0
To:

Hi all,

I'm preparing to release httr 1.0.0. This is a big release because it
replaces RCurl with curl, a modern binding to libcurl written by
Jeroen Ooms. This should fix many strange and lingering bugs.

I've run R CMD check on all reverse dependencies, and notified you
individually if I found any problems. But I'd still recommend
installing it (devtools::install_github("hadley/httr")) and testing
yourself, just to make sure I haven't missed anything. Please let me
know if you find any problems.

I'm planning to submit httr to CRAN on June 24.

Thanks!

Hadley

@wcornwell
Copy link
Collaborator

Problems:

> pl<-plant_lookup()
Error: key '0.3.1' not found, with error: Timeout was reached
In addition: Warning messages:
1: In curl::curl_fetch_disk(url, x$path, handle = handle) :
  progress callback must return boolean
2: In curl::curl_fetch_disk(url, x$path, handle = handle) :
  progress callback must return boolean
3: In curl::curl_fetch_disk(url, x$path, handle = handle) :
  progress callback must return boolean
4: In curl::curl_fetch_disk(url, x$path, handle = handle) :
  progress callback must return boolean
5: In curl::curl_fetch_disk(url, x$path, handle = handle) :
  progress callback must return boolean
6: In curl::curl_fetch_disk(url, x$path, handle = handle) :
  progress callback must return boolean
7: In curl::curl_fetch_disk(url, x$path, handle = handle) :
  progress callback must return boolean
8: In curl::curl_fetch_disk(url, x$path, handle = handle) :
  progress callback must return boolean
9: In curl::curl_fetch_disk(url, x$path, handle = handle) :
  progress callback must return boolean
10: In curl::curl_fetch_disk(url, x$path, handle = handle) :
  progress callback must return boolean

@richfitz
Copy link
Member Author

Cool, thanks. Will look into this tomorrow probably.

@wcornwell
Copy link
Collaborator

Looks everything works actually, just with this warning

1: In curl::curl_fetch_disk(url, x$path, handle = handle) :
  progress callback must return boolean

@richfitz
Copy link
Member Author

I fixed that by reinstalling httr and curl.

@wcornwell
Copy link
Collaborator

I'm still getting the warnings

@sckott
Copy link

sckott commented Jun 25, 2015

i get the same warnings with all updated versions of curl and httr

@wcornwell
Copy link
Collaborator

There might be a particular versions of curl and httr that still throw this warning, but curl 0.8.9000 and httr 1.0.0.9000 don't throw the warning. But leaving open for now in case other people have this issue

@wcornwell wcornwell added the bug label Jul 24, 2015
@ccleung
Copy link

ccleung commented Aug 7, 2015

I'm getting the same warnings with curl_0.9.1 and httr_1.0.0.

E.g., if I run:
httr::GET('https://www.google.com', progress())

I will see "There were 50 or more warnings (use warnings() to see the first 50)".

And here are the warnings (the same warning repeated):

50: In curl::curl_fetch_memory(url, handle = handle) :
  progress callback must return boolean

@wcornwell
Copy link
Collaborator

Yeah @ccleung it's been fixed here: r-lib/httr#252

But httr 1.0.0.9000 isn't up on CRAN. If you load the github version of httr the warning should go away.

@richfitz
Copy link
Member Author

Confirmed working with hadley/httr, so any version >= 1.0.0.9000 should not have this problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants