[GNC] On line quote debugging help

Kalpesh Patel kalpesh.patel at usa.net
Mon Dec 27 12:47:58 EST 2021


Thank you for that pointer. 

The puzzling part is that the quote source for all my securities is
yahoo_json but the 'Unable to retrieve quotes for these items:' window is
popping up for only mutual funds randomly, so far. I am not discounting the
fact that you are very likely to be right that source may have gone into
maintenance. Given the vast size of the network that yahoo still is and thus
some of the backend may not be in sync with all data so depending on which
one takes care of my request it may not have all the data and returning
"error".

That begets to ask another question: in the source list I noticed some of
them are greyed out and cannot select for 'Type of quote source' is selected
to 'Single' in 'Security Editor'. Is there a way to edit the list to
enable/disable a particular source?

Happy, healthy and prosperous new year to all.

-----Original Message-----
From: john <jralls at ceridwen.us> 
Sent: Monday, December 27, 2021 11:42 AM
To: Kalpesh Patel <kalpesh.patel at usa.net>
Cc: gnucash-user at gnucash.org
Subject: Re: [GNC] On line quote debugging help



> On Dec 27, 2021, at 7:41 AM, Kalpesh Patel <kalpesh.patel at usa.net> wrote:
> 
> Hi All -
> 
> 
> 
> Few days back when I upgraded to GNC 4.9 on Windows 10, I also ran the 
> 'Install Online Price Retrieval for GnuCash' which updated some of the 
> Perl modules. Now I am getting 'Unable to retrieve quotes for these
items:'
> window with a random listing of securities intermittently, which never 
> reared before in that fashion. I wanted to debug the issue to see what 
> might be happening in Perl. So is there a quick doc that I can review 
> that could allow me to put together debugging environment that would 
> use identical calls being done to Perl without deep dive into GNC code
base?
> 
> 
> 
> I am using Strawberry Perl 5.28.1 but I reckon It shouldn't matter 
> which Perl I am using: This is Perl 5, version 28, subversion 1 
> (v5.28.1) built for MSWin32-x86-multi-thread-64int
> 
> 
> 
> Pointers are appreciated.

We have https://wiki.gnucash.org/wiki/Online_Quotes#Trouble_Shooting, and
the perl in question isn't deeply embedded in the codebase. It's a single
script, gnc-fq-helper, found in C:\Program Files (x86)\gnucash\bin. There's
a companion script gnc-fq-dump that is a little more human-friendly;
gnc-fq-helper expects scheme-like strings for input and emits the same
because it's called from a Scheme module in GnuCash.

Most likely the problem is down to one or more of your quote sources being
offline over the weekend and there's nothing wrong with your F::Q setup.

Regards,
John Ralls



More information about the gnucash-user mailing list