You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Error in curl::curl_fetch_memory(url, handle = handle) : <url> malformed #191
And this is because self$findElement(paste0("#", id))$getAttribute("href") returns "". So we need to provide an informative error here, either checking that href exists or checking that httr::GET() succeeds (or both).
Activity
hadley commentedon Aug 12, 2020
I don't see any error when running:
So maybe it's that test that's the problem? Ok, yes, this generates the error:
hadley commentedon Aug 12, 2020
And this is because
self$findElement(paste0("#", id))$getAttribute("href")returns"". So we need to provide an informative error here, either checking thathrefexists or checking thathttr::GET()succeeds (or both).hadley commentedon Aug 12, 2020
Same underlying cause as #195
hadley commentedon Aug 14, 2020
Simpler reprex:
Consistently handle HTTP failures
Consistently handle HTTP failures (#346)