There was an unknown error while retrieving the price quotes

mike gnucash at rovoreed.com
Sat Oct 8 07:14:48 EDT 2016


On Fri, 2016-10-07 at 23:46 +0200, John Ralls wrote:
> > On Oct 7, 2016, at 5:17 PM, mike <gnucash at rovoreed.com> wrote:
> > 
> > Started getting "There was an unknown error while retrieving the
> > price
> > quotes" at the start of this month.
> > 
> > Running Fedora 22 with gnucash 2.6.12
> > 
> > I know sometimes the websites change their formats etc which can
> > mess
> > things up, so I have tried a few different sources, but it makes no
> > difference.
> > 
> > The odd thing is, if I use gnc-fq-dump I get valid data. e.g.
> > 
> > [mike at blackstock ~]$ gnc-fq-dump yahoo BP.L
> > Finance::Quote fields Gnucash uses:
> >    symbol: BP.L                 <=== required
> >      date: 10/07/2016           <=== required
> >  currency: GBP                  <=== required
> >      last: 4.8545               <=\       
> >       nav:                      <=== one of these
> >     price: 4.8545               <=/        
> >  timezone:                      <=== optional
> > [mike at blackstock ~]$ 
> > 
> > It seems to affect all my UK quoted stocks, but nothing else.
> > Anyone
> > got any ideas what is going on ?
> 
> The "unknown error" thing happens when gnc-fq-helper returns results
> that parse-quotes.scm can't parse into a list. To
> troubleshoot further, go through *all* of your securities and disable
> quote retrieval on all but one of them. Try to get quotes. If it
> works, turn quote retrieval back on for one more security and try
> again. Lather, rinse, repeat until it fails, then feed the last one
> added to gnc-fq-helper like this:
>   echo '(yahoo "BP.L")' | gnc-fq-helper
> and see what you get back. If everything's working right it should be
> something like
> (("BP.L" (symbol . "BP.L") (gnc:time-no-zone . "2016-10-07 17:10:00")
> (last . 4.86) (currency . "GBP")))
> Since it's failing, it probably won't look like that, and the output
> will probably be a good clue as to what's going wrong.
> 
> Regards,
> John Ralls

Thanks for the reply. By a process of elimination it seems that
choosing multiple sources and a source of "yahoo" doesn't work anymore.
If I explicitly state a single source for the update and ask for
"yahoo_europe" then stock prices are retrieved OK.

During testing of retrieval of UK Unit Trust prices I did generate this
error though...

[mike at blackstock ~]$ gnc-fq-dump europe GB0032567926
Can't call method "rows" on an undefined value at
/usr/share/perl5/vendor_perl/HTML/TableExtract.pm line 237.
[mike at blackstock ~]$

This error only happened once, Repeating the request just responded as
you'd possibly expect with...

[mike at blackstock ~]$ gnc-fq-dump europe GB0032567926
Finance::Quote fields Gnucash uses:
    symbol: GB0032567926         <=== required
      date: ** missing **        <=== required
  currency: ** missing **        <=== required
      last:                      <=\       
       nav:                      <=== one of these
     price:                      <=/        
  timezone:                      <=== optional

** This stock quote cannot be used by gnucash!!

[mike at b$lackstock ~
 
Not quite sure what "europe" is, whether it is Unit Trusts, Stock,
Bonds or what. Never mind though, because a single source of "mstaruk"
seems to work OK.

Thanks for the replies.

I think my problem is fixed.


More information about the gnucash-user mailing list