You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
you are most likely running into an issue that yahoo now requires GDPR consent, which cannot be scripted. i have pushed a patch that will give a better error message. if you would like to test it:
@chartviewer we don't currently have a fix for this, because it's not clear how to programmatically consent to GDPR. More information is in the comments of #382.
joshuaulrich
changed the title
getQuote throws and error 404
getQuote throws 404 error in GDPR countries
Jul 20, 2023
Yahoo Finance requires GDPR consent in some countries. We can't
automatically consent for the user, so the data request fails with an
ambiguous 404 error.
Yahoo also started to require a User-Agent in the header.
Fixes#392. Fixes#393.
Co-authored-by: Ethan Smith <24379655+ethanbsmith@users.noreply.github.com>
Description
The command getQuote("AAPL") throws the error "Error in open.connection(con, "rb") : HTTP error 404". Any chance to fix that?
Thanks a lot!
Thorsten
Expected behavior
I would expect to get a dataframe containing the most recent quote from yahoo as the default src
Minimal, reproducible example
Session Info
The text was updated successfully, but these errors were encountered: