edgarWebR
edgarWebR copied to clipboard
company_filings and filing_details now giving "xml2::url_absolute error"
Hi, I love your package. This worked on Feb 18th, but doesn't now. Not sure if this is an xml2 problem, it looks like some updates for that package came out subsequently.
filing_list <- company_filings( as.character('AAPL'), ownership = FALSE, type = '10-K', before = "2020207", count = 40, page = 1)
Error in xml2::url_absolute(res[[ref]], xml2::xml_url(doc)) : Base URL must be length 1
Any thoughts appreciated.
I did the digging - the release v1.3.0 of xml2 did cause a breaking change
Tracking in https://github.com/r-lib/xml2/issues/300
not sure if this helps, but asked on SO, and reply from MediocreAtBest was downgrade to xml2 1.2.2 solved it. https://stackoverflow.com/questions/61100118/edgarwebr-started-giving-error-related-to-xml2-package
Yea, you can go as far as v1.2.5 and it should work - I did a lot of side by side checks w/ different versions of xml2