[GNC] Finance::Quotes stopped working for me

Bruno Acklin backlin at gmail.com
Sat Mar 30 18:59:30 EDT 2019


   John,
   Thanks for your help and patience!
   I did just that and updated Net::HTTP, as well as LWP, Date::Manip and
   Finance::Quote again. All of them are confirmed up to date now.
   But calling …/stockdump.pl still yields an "internal server error” 500:
   Brunos-MacBook-Pro:~ backlin$
   ~/.cpan/build/Finance-Quote-1.47-FVw_VE/Examples/stockdump.pl
   yahoo_json aapl
   $VAR1 = {
             'aaplsymbol' => 'aapl',
             'aaplsuccess' => 0,
             'aaplerrormsg' => 'Error retrieving quote for aapl. Attempt
   to fetch the URL
   [1]https://query1.finance.yahoo.com/v7/finance/quote?symbols=aapl
   resulted in HTTP response 500 (Internal Server Error)'
           };
   Why is stockdump.pl misinterpreting the parameters and prepending apple
   to ‘symbol’ and ‘success’ and 'error msg’?
   Still, calling the very URL in the error message using curl works
   instantly:
   Brunos-MacBook-Pro:~ backlin$ curl
   [2]https://query1.finance.yahoo.com/v7/finance/quote?symbols=aapl
   {"quoteResponse":{"result":[{"language":"en-US","region":"US","quoteTyp
   e":"EQUITY","quoteSourceName":"Nasdaq Real Time
   Price","currency":"USD","fullExchangeName":"NasdaqGS","longName":"Apple
   ..
   Could Perl address another "internal server” which times out? A DNS
   issue?
   Do you have any other suggestions to try, or can point out the program
   hierarchy to trace these calls?
   (Again reminding that I have this problem on two independent
   installations, and it appeared overnight, while gnucash on Desktop, and
   Perl Terminal window on Laptop were open and running.)
   Thanks, Bruno

   On Mar 28, 2019, at 6:15 PM, John Ralls
   <[3]jralls at ceridwen.fremont.ca.us> wrote:

   ~/.cpan/build/Finance-Quote-1.47-XXXXX/Examples/stockdump.p

References

   1. https://query1.finance.yahoo.com/v7/finance/quote?symbols=aapl
   2. https://query1.finance.yahoo.com/v7/finance/quote?symbols=aapl
   3. mailto:jralls at ceridwen.fremont.ca.us


More information about the gnucash-user mailing list