bean-price fetching issue with yahoo

119 views
Skip to first unread message

Vinit Khandagle

unread,
May 7, 2023, 12:17:27 AM5/7/23
to Beancount
I am seeing the below error while trying to fetch prices from yahoo, not sure how to solve this issues

bean-price -e "USD:yahoo/AAPL" --no-cache
```
File "/Users/vkbytes/miniforge3/lib/python3.9/site-packages/beanprice/sources/yahoo.py", line 129, in get_latest_price
    raise YahooError("%s (ticker: %s)" % (error, ticker)) from error
beanprice.sources.yahoo.YahooError: Status 401: {'code': 'Unauthorized', 'description': 'Invalid Cookie'} (ticker: AAPL)
```

Red S

unread,
May 7, 2023, 3:55:58 PM5/7/23
to Beancount
I ran into the same thing a couple days ago. This fix worked for me:

https://github.com/beancount/beanprice/issues/75
Reply all
Reply to author
Forward
0 new messages