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

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

Open
luceydav opened this issue Apr 8, 2020 · 3 comments

Comments

@luceydav
Copy link

luceydav commented Apr 8, 2020

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.

@mwaldstein
Copy link
Owner

I did the digging - the release v1.3.0 of xml2 did cause a breaking change

Tracking in r-lib/xml2#300

@luceydav
Copy link
Author

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

@mwaldstein
Copy link
Owner

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

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

No branches or pull requests

2 participants