-
Notifications
You must be signed in to change notification settings - Fork 47
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
HTTP error 403 #20
Comments
Hello,
|
@darh78 That file doesn't exist try: @rrik that happens to me also with older submissions, seems like it has to do with the SEC fair use policy, you can try downloading the file manually and put it in the cache folder, or you can run the code few times, it will eventually end up downloading it. |
Hi, I also tried same error,
I try to change count for 1 and works, so it seems this page is detecting that we are not a browser and block. We need to use rSelenium :( |
I have been receiving the same error. Is there any workaround? |
same error here:
|
Same error 403 in all functions AnnualReports ("TSLA") |
R version 4.1.0 (2021-05-18) Matrix products: default locale: attached base packages: other attached packages: loaded via a namespace (and not attached): |
I am also experiencing this problem. |
Here is my workaround to your problem. The problem is that the SEC wants the scraper to be identified in what it is called user-agent. Before placing my request for data I execute ...
The user name is only remembered during the current session. With this workaround, everything works fine for me, no more errors 403 VS |
I used vsoler's suggestion to use the options statement and I'm still having trouble: GetIncome("MA", 2020) Error in fileFromCache(file.inst) : Error in download.file(file, cached.file, quiet = !verbose) : cannot open URL 'https://www.sec.gov/Archives/edgar/data/1141391/000114139120000032/ma-20191231.xml' In addition: Warning messages: 1: In download.file(file, cached.file, quiet = !verbose) : downloaded length 0 != reported length 324 2: In download.file(file, cached.file, quiet = !verbose) : cannot open URL 'https://www.sec.gov/Archives/edgar/data/1141391/000114139120000032/ma-20191231.xml': HTTP status was '404 Not Found' According to the SEC the user-agent must be used in the request header. |
Hi guys, Any chances of having an update solving the pb here? |
My work around for this problem was to install two missing packages 'XBRL' and 'Rcpp' |
Guys could you please suggest current solution for this problem? (HTTP error 403) |
There are several errors being conflated in this issue. The 403 errors are because your clement is not authorised. This is because you have not set (or have improperly set) your User-Agent header and the SEC is saying you can’t have access. The 404 error mentioned by @eweiss99 is because the file that IMO the best fix here would be for I’ve got a bit of momentum here so I’ll try see if it’s a simple fix and make a pull request. |
@vsoler's answer on
worked like a charm. Hope this can be seen on the main readme page! |
Hello,
I am getting a 403 error when attempting the following
`> GetIncome("FB", 2016)
Error in fileFromCache(file) :
Error in download.file(file, cached.file, quiet = !verbose) :
cannot open URL 'https://www.sec.gov/Archives/edgar/data/1326801/000132680116000043/fb-20151231.xsd'
In addition: Warning message:
In download.file(file, cached.file, quiet = !verbose) :
cannot open URL 'https://www.sec.gov/Archives/edgar/data/1326801/000132680116000043/fb-20151231.xsd': HTTP status was '403 Forbidden'`
Do the source links need updating? Thank you!
The text was updated successfully, but these errors were encountered: