edgarWebR icon indicating copy to clipboard operation
edgarWebR copied to clipboard

company_filings and filing_details now giving "xml2::url_absolute error"

Open luceydav opened this issue 4 years ago • 3 comments

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.

luceydav avatar Apr 08 '20 11:04 luceydav

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

mwaldstein avatar Apr 15 '20 21:04 mwaldstein

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

luceydav avatar Apr 15 '20 21:04 luceydav

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

mwaldstein avatar Apr 15 '20 21:04 mwaldstein