Closed raiphilibert closed 4 years ago
Thanks @raiphilibert for opening this issue!
Unfortunately I could not replicate the error (tried both barium and aluminium). CAS 1304-28-5 was queried internally in both cases, so the function works till that point. However, querying the exact same CAS failed in one case, whereas it didn't fail in another. This is strange because the function should execute the same piece of code. The error was probably produced by xml2::read_html()
, maybe this is a curl
issue?
ci_query("1304-28-5", "rn")
produces an error? Maybe call it a few times, to see that it consistently works, and/or try other CAS RNs. Webservices may black out every now and then.ci_query("Barium",match = "ask")
. I had 50 alternatives, randomly tried a few, all of them were working.@raiphilibert are you using the most recent version of webchem, version 1.0.0? I also can't reproduce this error on my system, but I remember having seen this xml_find_first()
error somewhere...
Hi
I do think it's the latest version. I installed it very recently. I'll try again over the next couple of days and let you know!
Thanks!
On Fri., Jun. 19, 2020, 8:30 a.m. Eric R Scott, notifications@github.com wrote:
@raiphilibert https://github.com/raiphilibert are you using the most recent version of webchem, version 1.0.0? I also can't reproduce this error on my system, but I remember having seen this xml_find_first() error somewhere...
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/ropensci/webchem/issues/265#issuecomment-646698951, or unsubscribe https://github.com/notifications/unsubscribe-auth/AC6Q4HBCM7RCTSMHR74CYADRXOAC3ANCNFSM4OA2KD5Q .
I tried again today and it seemed to work fine. I'll close the issue for now and will let you know if it comes up again
Hello
I have been having an issue downloading data using the
ci_query
function with the match option ''best". This error only happens for some chemicals (mostly metals e.g Barium, Aluminum).returns an error:
But if I run the ci_query and manually select the same match, the download is successful.