[GNC] Finance::Quotes stopped working for me

Bruno Acklin backlin at gmail.com
Sun Mar 24 17:36:00 EDT 2019


Hi John,

Sorry for the omission and delay.

No, I have none of these “fake-Linux package managers”(?) installed - should I?

The reply to backlin$ which perl is
/usr/bin/perl

In usr/bin I find two entries:
perl and
perl5.18

The directory Library/Perl contains
/5.18
	/Darwin-thread-multi-2level
	/Finance
	/HTML
	/JSON
	/Mozilla
	/AppendToPath
	/JSON.pm
/Updates
	/5.18.2
		/Darwin-thread-multi-2level

Looking up contents of 
~/.cpan/build/ :
Date-Manip-6.75-JzZ9Wt		ExtUtils-MakeMaker-7.34-_6iXcq
Date-Manip-6.76-9mWyaN		Finance-Quote-1.47-_BUlzK
Date-Manip-6.76-NE8c76		Finance-Quote-1.47-nChsgf
Date-Manip-6.76-QNnn65		HTML-TableExtract-2.15-dP4w2A
ExtUtils-MakeMaker-7.34-695wh2	JSON-4.02-RrPsdw
ExtUtils-MakeMaker-7.34-DVwu8U	Mozilla-CA-20180117-TgJL7x
ExtUtils-MakeMaker-7.34-U01uzs

Trying your suggestion with /stockdump.pm for both fnq builds I get a delayed, identical result, even if I misspell aap(l) for a non-existing ticker:

backlin$ ~/.cpan/build/Finance-Quote-1.47-_BUlzK/Examples/stockdump.pl yahoo_json aapl
$VAR1 = {
          'aaplsymbol' => 'aapl',
          'aaplsuccess' => 0,
          'aaplerrormsg' => 'Error retrieving quote for aapl. Attempt to fetch the URL https://query1.finance.yahoo.com/v7/finance/quote?symbols=aapl resulted in HTTP response 500 (Internal Server Error)'

and
backlin$ ~/.cpan/build/Finance-Quote-1.47-nChsgf/Examples/stockdump.pl yahoo_json aap
$VAR1 = {
          'aapsymbol' => 'aap',
          'aapsuccess' => 0,
          'aaperrormsg' => 'Error retrieving quote for aap. Attempt to fetch the URL https://query1.finance.yahoo.com/v7/finance/quote?symbols=aap resulted in HTTP response 500 (Internal Server Error)'
        };

I am hoping this might give you a clue. I have no idea what could have gone wrong. Just that finance quote stopped working on my desktop and my laptop the same week, when I did not do anything on my system, not even reboot, other than changing the network access updating the router configuration.

Thanks, and best, Bruno


> On Mar 22, 2019, at 7:46 PM, John Ralls <jralls at ceridwen.fremont.ca.us> wrote:
> 
> Please remember to copy the list on all replies.
> 
> Curl and your browser working exonerates your router.
> 
> *Re*-installing perl would I think be challenging; it's provided as part of MacOS so I'd think that the only safe way to do it would be to reinstall the OS.
> 
> That said, do you have any of the fake-Linux package managers--Homebrew, MacPorts, or Fink--installed?
> 
> What's the output of running
>  which perl
> from the command line?
> How about 
>  ~/.cpan/build/Finance-Quote-1.47-XXXXXX/Examples/stockdump.pl yahoo_json aapl
> (the XXXXXX bit is random characters that depends on the installation).
> 
> Regards,
> John Ralls
> 
>> On Mar 22, 2019, at 3:31 PM, Bruno Acklin <backlin at gmail.com> wrote:
>> 
>> No, I get an instant reply with content:
>> {"quoteResponse":{"result":[{"language":"en-US","region":"US","quoteType":"EQUITY","quoteSourceName":"Nasdaq Real Time Price","currency":"USD","regularMarketPrice":191.05,..
>> 
>> Same if I use the fnc query from my browser:
>> https://query1.finance.yahoo.com/v7/finance/quote?symbols=aapl
>> 
>> Any other ideas, especially related to the router change?
>> 
>> Is there a point and safe way in reinstalling all of PERL on MacOS Mojave?
>> 
>> Best, Bruno
>> 
>>> On Mar 22, 2019, at 12:05 PM, John Ralls <jralls at ceridwen.fremont.ca.us> wrote:
>>> 
>>> https://query1.finance.yahoo.com/v7/finance/quote?symbols=aapl
>> 
> 



More information about the gnucash-user mailing list