-
Notifications
You must be signed in to change notification settings - Fork 69
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
Error in download file #12
Comments
Having the exact same problem for most of my attempts can't figure out if the problem is with finstr or with SEC. The error happens mostly for 2018 filings (haven't seen an issue with any other year yet) and always with the same 'dei' file. Thanks for your time. |
I was working through the old bergrant/XBRLFiles workflow for a 2019 company to try and figure out the issue. It seems that I am getting tons of duplicates so that the spread statements do not work. I was able to do it manually by using dplyr::distinct, so figure someone can go through and update the finstr package for the fix (I'm still fairly new so no clue how to do that and don't want to break anything). ` pres_df_num <- pres_df_num %>% pres_df_num <- distinct(pres_df_num) #library(pander) |
Hey @enFinExplorer , would you mind explaining a bit how to implement this (manually for now) to fix the issue with wrong url generation? |
One thing that I figured out is you have to manually go and install the .xsd schema pages into your xbrl cache. Otherwise, I'll have to go through and look some of my older code to see if I still have it somewhere. |
Oh no worries, it's just a curiosity for me. I saw another response to the linked issue that may lead to the correct xbrl download link. I'll give it a shot first and see if it might be an automated solution. I'm trying to write a quick app to pull and do some basic financial stats on a variety of companies, but as I see everyone has figured, it's not that easy to do this across time :D Thanks for the pointer! |
This is an issue with the XBRL library when the Schema URL is HTTPS.
It checks that if the URL doesn't start with "http:" then it starts modifying it. It prepends the file name with the parent directory of the original request:
I'm new to R, but looking into how to recompile the library and force it to use the fixed version of the file. |
Just a note; is anyone having 403 errors trying to use xbrlDoAll these days or is the SEC just mad at me for using this so much? My quick workaround was to install the recount package in R and use download_retry instead of download.file within the the actual XBRL package functions. |
A potential fix to the 403 errors that @jwozny brought up with the XBRL URL issue. |
Hi, I'm having issue extracting values from Starbuck's latest 10-k.
Trace:
It seems like two links are being incorrectly appended but not sure why, any help would be great, thanks!
The text was updated successfully, but these errors were encountered: