Newan / ioBroker.yahoo-stock-market

ioBroker adapter to check stock market
MIT License
4 stars 2 forks source link

Error: Invalid Cookie #6

Closed aldercanoe closed 1 year ago

aldercanoe commented 1 year ago

Node.js v19.9.0 NPM 9.8.1 Debian 11

yahoo-stock-market 0.0.4 The error 'Invalid Cookie' is still there.

Newan commented 1 year ago
2023-07-27 20:24:26.896  - debug: yahoo-stock-market.0 (82549) Api return: '{"price":{"maxAge":1,"regularMarketChangePercent":0.035027754,"regularMarketChange":1.6399994,"regularMarketTime":"2023-07-27T15:44:46.000Z","priceHint":2,"regularMarketPrice":48.46,"regularMarketDayHigh":48.46,"regularMarketDayLow":48.2,"regularMarketVolume":600,"regularMarketPreviousClose":46.82,"regularMarketSource":"DELAYED","regularMarketOpen":48.2,"exchange":"FRA","exchangeName":"Frankfurt","exchangeDataDelayedBy":15,"marketState":"REGULAR","quoteType":"EQUITY","symbol":"FRA.F","underlyingSymbol":null,"shortName":"FRAPORT AG","longName":"Fraport AG","currency":"EUR","quoteSourceName":"Delayed Quote","currencySymbol":"€","fromCurrency":null,"toCurrency":null,"lastMarket":null,"marketCap":4477282304}}'
2023-07-27 20:24:26.896  - debug: yahoo-stock-market.0 (82549) stocks to check: AAPL,FRA.F,PA=F
2023-07-27 20:24:26.897  - debug: yahoo-stock-market.0 (82549) Api return: '{"price":{"maxAge":1,"regularMarketChangePercent":-0.017039591,"regularMarketChange":-21.400024,"regularMarketTime":"2023-07-27T18:14:01.000Z","priceHint":2,"regularMarketPrice":1234.5,"regularMarketDayHigh":1270,"regularMarketDayLow":1215.5,"regularMarketVolume":2671,"regularMarketPreviousClose":1255.9,"regularMarketSource":"DELAYED","regularMarketOpen":1263,"exchange":"NYM","exchangeName":"NY Mercantile","exchangeDataDelayedBy":10,"marketState":"REGULAR","quoteType":"FUTURE","symbol":"PA=F","underlyingSymbol":null,"shortName":"Palladium Sep 23","longName":null,"currency":"USD","quoteSourceName":"Delayed Quote","currencySymbol":"$","fromCurrency":null,"toCurrency":null,"lastMarket":null}}'
2023-07-27 20:24:26.897  - debug: yahoo-stock-market.0 (82549) stocks to check: AAPL,FRA.F,PA=F
2023-07-27 20:24:27.234  - debug: yahoo-stock-market.0 (82549) Api return: '{"price":{"maxAge":1,"preMarketChangePercent":0.00796917,"preMarketChange":1.55,"preMarketTime":"2023-07-27T13:29:59.000Z","preMarketPrice":196.05,"preMarketSource":"FREE_REALTIME","regularMarketChangePercent":-0.0016452819,"regularMarketChange":-0.32000732,"regularMarketTime":"2023-07-27T18:24:26.000Z","priceHint":2,"regularMarketPrice":194.18,"regularMarketDayHigh":197.2,"regularMarketDayLow":193.94,"regularMarketVolume":28449331,"regularMarketPreviousClose":194.5,"regularMarketSource":"FREE_REALTIME","regularMarketOpen":196.02,"exchange":"NMS","exchangeName":"NasdaqGS","exchangeDataDelayedBy":0,"marketState":"REGULAR","quoteType":"EQUITY","symbol":"AAPL","underlyingSymbol":null,"shortName":"Apple Inc.","longName":"Apple Inc.","currency":"USD","quoteSourceName":"Nasdaq Real Time Price","currencySymbol":"$","fromCurrency":null,"toCurrency":null,"lastMarket":null,"marketCap":3054198849536}}'
2023-07-27 20:24:27.235  - debug: yahoo-stock-market.0 (82549) stocks to check: AAPL,FRA.F,PA=F

I can not reproduce, with node 20 and npm 9 on OSX

aldercanoe commented 1 year ago

 

2023-07-27 20:49:11.257 - debug: yahoo-stock-market.0 (537737) stocks to check: EUNL.DE,IQQH.DE,BNXG.DE,ADE.DE,BMW.DE,SIE.DE 2023-07-27 20:49:11.437 - error: yahoo-stock-market.0 (537737) Error on APi Call for symbol: ADE.DE 2023-07-27 20:49:11.442 - error: yahoo-stock-market.0 (537737) Error: Invalid Cookie 2023-07-27 20:49:11.461 - error: yahoo-stock-market.0 (537737) Error on APi Call for symbol: IQQH.DE 2023-07-27 20:49:11.462 - error: yahoo-stock-market.0 (537737) Error: Invalid Cookie 2023-07-27 20:49:11.469 - error: yahoo-stock-market.0 (537737) Error on APi Call for symbol: EUNL.DE 2023-07-27 20:49:11.470 - error: yahoo-stock-market.0 (537737) Error: Invalid Cookie 2023-07-27 20:49:11.473 - error: yahoo-stock-market.0 (537737) Error on APi Call for symbol: BNXG.DE 2023-07-27 20:49:11.474 - error: yahoo-stock-market.0 (537737) Error: Invalid Cookie

I am not a programmer and don't know where to search for the reason.

aldercanoe commented 1 year ago

It worked until 2023-07-12

Newan commented 1 year ago

sorry same stocks works fine here:

2023-07-27 21:17:48.135 - debug: yahoo-stock-market.0 (86861) stocks to check: EUNL.DE,IQQH.DE,BNXG.DE,ADE.DE,BMW.DE,SIE.DE 2023-07-27 21:17:48.275 - debug: yahoo-stock-market.0 (86861) Api return: '{"price":{"maxAge":1,"regularMarketChangePercent":0.03181328,"regularMarketChange":4.799988,"regularMarketTime":"2023-07-27T15:43:53.000Z","priceHint":2,"regularMarketPrice":155.68,"regularMarketDayHigh":155.96,"regularMarketDayLow":150.4,"regularMarketVolume":1480774,"regularMarketPreviousClose":150.88,"regularMarketSource":"DELAYED","regularMarketOpen":150.98,"exchange":"GER","exchangeName":"XETRA","exchangeDataDelayedBy":15,"marketState":"POSTPOST","quoteType":"EQUITY","symbol":"SIE.DE","underlyingSymbol":null,"shortName":"SIEMENS AG","longName":"Siemens Aktiengesellschaft","currency":"EUR","quoteSourceName":"Delayed Quote","currencySymbol":"€","fromCurrency":null,"toCurrency":null,"lastMarket":null,"marketCap":123322843136}}' 2023-07-27 21:17:48.275 - debug: yahoo-stock-market.0 (86861) stocks to check: EUNL.DE,IQQH.DE,BNXG.DE,ADE.DE,BMW.DE,SIE.DE 2023-07-27 21:17:48.485 - debug: yahoo-stock-market.0 (86861) Api return: '{"price":{"maxAge":1,"regularMarketChangePercent":0.02612911,"regularMarketChange":2.7999954,"regularMarketTime":"2023-07-27T15:42:25.000Z","priceHint":2,"regularMarketPrice":109.96,"regularMarketDayHigh":109.96,"regularMarketDayLow":105.96,"regularMarketVolume":1121262,"regularMarketPreviousClose":107.16,"regularMarketSource":"DELAYED","regularMarketOpen":107.46,"exchange":"GER","exchangeName":"XETRA","exchangeDataDelayedBy":15,"marketState":"POSTPOST","quoteType":"EQUITY","symbol":"BMW.DE","underlyingSymbol":null,"shortName":"BAY.MOTOREN WERKE AG ST","longName":"Bayerische Motoren Werke Aktiengesellschaft","currency":"EUR","quoteSourceName":"Delayed Quote","currencySymbol":"€","fromCurrency":null,"toCurrency":null,"lastMarket":null,"marketCap":72445935616}}' 2023-07-27 21:17:48.485 - debug: yahoo-stock-market.0 (86861) stocks to check: EUNL.DE,IQQH.DE,BNXG.DE,ADE.DE,BMW.DE,SIE.DE 2023-07-27 21:17:48.500 - debug: yahoo-stock-market.0 (86861) Api return: '{"price":{"maxAge":1,"regularMarketChangePercent":-0.011363637,"regularMarketChange":-0.25,"regularMarketTime":"2023-07-27T15:36:18.000Z","priceHint":2,"regularMarketPrice":21.75,"regularMarketDayHigh":21.95,"regularMarketDayLow":21.4,"regularMarketVolume":11403,"regularMarketPreviousClose":22,"regularMarketSource":"DELAYED","regularMarketOpen":21.85,"exchange":"GER","exchangeName":"XETRA","exchangeDataDelayedBy":15,"marketState":"POSTPOST","quoteType":"EQUITY","symbol":"ADE.DE","underlyingSymbol":null,"shortName":"Bitcoin Group SE Inhaber-Aktien","longName":"Bitcoin Group SE","currency":"EUR","quoteSourceName":"Delayed Quote","currencySymbol":"€","fromCurrency":null,"toCurrency":null,"lastMarket":null,"marketCap":108750000}}' 2023-07-27 21:17:48.500 - debug: yahoo-stock-market.0 (86861) stocks to check: EUNL.DE,IQQH.DE,BNXG.DE,ADE.DE,BMW.DE,SIE.DE 2023-07-27 21:17:48.505 - debug: yahoo-stock-market.0 (86861) Api return: '{"price":{"maxAge":1,"regularMarketChangePercent":0.014188317,"regularMarketChange":1.1079941,"regularMarketTime":"2023-07-27T15:36:00.000Z","priceHint":2,"regularMarketPrice":79.2,"regularMarketDayHigh":79.438,"regularMarketDayLow":78.348,"regularMarketVolume":450287,"regularMarketPreviousClose":78.092,"regularMarketSource":"DELAYED","regularMarketOpen":78.434,"exchange":"GER","exchangeName":"XETRA","exchangeDataDelayedBy":15,"marketState":"POSTPOST","quoteType":"ETF","symbol":"EUNL.DE","underlyingSymbol":null,"shortName":"ISHSIII-CORE MSCI WLD DLA","longName":"iShares Core MSCI World UCITS ETF USD (Acc)","currency":"EUR","quoteSourceName":"Delayed Quote","currencySymbol":"€","fromCurrency":null,"toCurrency":null,"lastMarket":null}}'

aldercanoe commented 1 year ago

Eveything is up to date in iobroker and in Debian. I have absolutely no idea where to search the mistake.

rimhaeuser commented 1 year ago

same Error since 12.07.2023. After update directly from Github it works perfectly again.

aldercanoe commented 1 year ago

I tried the same. Directly update from Github and it works again. Thank you.

Newan commented 1 year ago

ok i create an new version