[GNC] Yahoo JSON - throwing unauthorized error

Colin Arndt colinfarndt at gmail.com
Sat May 6 22:22:18 EDT 2023


Thank you Bruce. That fixed it and was a lot quicker than changing ~30 securities to a new provider.

For anyone else on macOS, the location was:
/Library/Perl/5.30/Finance/Quote/YahooJSON.pm 

Best,
Colin

> On May 6, 2023, at 3:19 PM, gnucash-user-request at gnucash.org wrote:
> 
> ------------------------------
> 
> Message: 8
> Date: Sat, 6 May 2023 12:12:12 -0700
> From: Bruce Schuck <bschuck at asgard-systems.com <mailto:bschuck at asgard-systems.com>>
> To: gnucash-user at gnucash.org <mailto:gnucash-user at gnucash.org>
> Cc: farleykj at gmail.com <mailto:farleykj at gmail.com>
> Subject: Re: [GNC] Yahoo JSON - throwing unauthorized error
> Message-ID: <37705e31-b6a2-6faf-3007-83a0e9ce59ca at asgard-systems.com <mailto:37705e31-b6a2-6faf-3007-83a0e9ce59ca at asgard-systems.com>>
> Content-Type: text/plain; charset=UTF-8; format=flowed
> 
> Ken,
> 
> I am currently evaluating which of the alternatives is the best 
> replacement. I'm also a little hopeful that in the meantime the 
> functionality of the current URL/API is restored before the time is 
> spent to not only make the changes, but the related housekeeping 
> necessary before pushing an official release to CPAN.
> 
> In the mean time, for those savvy enough to find and edit the 
> YahooJSON.pm file on their system, a quick fix is to change this line:
> 
> my $YIND_URL_HEAD = 
> 'https://query1.finance.yahoo.com/v7/finance/quote?symbols=';
> 
> to:
> 
> my $YIND_URL_HEAD = 
> 'https://query1.finance.yahoo.com/v6/finance/quote?symbols=';
> 
> Be wary that there may be multiple versions of the YahooJSON.pm file and 
> a system, so be certain to modify the correct one.
> 
> - Bruce S.



More information about the gnucash-user mailing list