[GNC] Yahoo JSON - throwing unauthorized error

Tom Teixeira tjteixeira at earthlink.net
Thu Apr 20 09:47:16 EDT 2023


Other projects using Yahoo for finance quotes are running into the issue 
as well. https://github.com/joshuaulrich/quantmod/issues/382 is 
interesting because someone has developed a patch, but I don't think 
they are using Finance::Quotes. I'm not sure how to get this patch 
raised to the attention of people who might be working on Finance::Quotes.

On 4/19/23 10:31 PM, Bruce Schuck wrote:
> On Wed, 19 Apr 2023 20:37:09 Murugan
> Muruganandam<m.muruganandam at hotmail.com> wrote:
>
>> Today when i ran get quote got the following error message
>
>> Finance::Quote reported a failure for symbol acn: Error retrieving
>> quote for acn. Attempt to fetch the
>> URLhttps://query1.finance.yahoo.com/v7/finance/quote?symbols=acn
>> resulted in HTTP response 401 (Unauthorized)
>
>> When i queried the url i got the same error, if i change to v6
>> instead of v7 , it is providing me the quotes correctly both in
>> browser and in GNU (changed it in YahooJSON.pm)
>
> That seems to have stopped working as well. I tried v6 and v8 earlier.
>
> % curl --silent --include 
> https://query1.finance.yahoo.com/v6/finance/quote?symbols=acn
>
> HTTP/2 404
> content-type: application/json;charset=utf-8
> y-rid: e0e9j0di418rs
> x-yahoo-request-id: e0e9j0di418rs
> x-request-id: 18b17b37-84d3-4742-89be-88a028087d51
> content-length: 91
> x-envoy-upstream-service-time: 1
> date: Thu, 20 Apr 2023 02:29:16 GMT
> server: ATS
> x-envoy-decorator-operation: 
> finance-quote-api--mtls-production-gq1.finance-k8s.svc.yahoo.local:4080/*
> cache-control: max-age=0, private
> expires: -1
> age: 0
> strict-transport-security: max-age=31536000
> referrer-policy: no-referrer-when-downgrade
> x-frame-options: SAMEORIGIN
> expect-ct: max-age=31536000, 
> report-uri="http://csp.yahoo.com/beacon/csp?src=yahoocom-expect-ct-report-only"
> x-xss-protection: 1; mode=block
> x-content-type-options: nosniff
>
> {"finance":{"result":null,"error":{"code":"Not 
> Found","description":"HTTP 404 Not Found"}}}
>
> _______________________________________________
> gnucash-user mailing list
> gnucash-user at gnucash.org
> To update your subscription preferences or to unsubscribe:
> https://lists.gnucash.org/mailman/listinfo/gnucash-user
> -----
> Please remember to CC this list on all your replies.
> You can do this by using Reply-To-List or Reply-All.




More information about the gnucash-user mailing list