You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
and I am trying to play around for fun, I found YahooFinance.get("STOCK_NAME") is throwing an exception.
Here is the log from console for stacktrace
2023-02-11T20:48:45.600-05:00 INFO 16736 --- [ main] yahoofinance.YahooFinance : Sending request: http://finance.yahoo.com/d/quotes.csv?s=APPL&f=nsc4xab2sa5sbb3sb6sl1sk3sd1t1opghva2kjm3m4sj2sss1sj1sf6sr1qdyee7e9e8rr5p6p5b4s6j4t8s7&e=.csv
2023-02-11T20:48:45.703-05:00 INFO 16736 --- [ main] yahoofinance.YahooFinance : Parsing CSV line: redirect
2023-02-11T20:48:45.703-05:00 ERROR 16736 --- [ main] c.sm.stockanalyzer.service.DataManager : java.lang.StringIndexOutOfBoundsException: begin 0, end -1, length 8
java.lang.StringIndexOutOfBoundsException: begin 0, end -1, length 8
at java.base/java.lang.String.checkBoundsBeginEnd(String.java:4604)
at java.base/java.lang.String.substring(String.java:2707)
at yahoofinance.quotes.stock.StockQuotesRequest.parseCSVLine(StockQuotesRequest.java:126)
at yahoofinance.quotes.stock.StockQuotesRequest.parseCSVLine(StockQuotesRequest.java:11)
at yahoofinance.quotes.QuotesRequest.getResult(QuotesRequest.java:95)
at yahoofinance.YahooFinance.getQuotes(YahooFinance.java:355)
at yahoofinance.YahooFinance.get(YahooFinance.java:85)
at yahoofinance.YahooFinance.get(YahooFinance.java:69)
at com.sm.stockanalyzer.service.DataManager.<init>(DataManager.java:18)
at com.sm.stockanalyzer.StockAnalyzerApplication.main(StockAnalyzerApplication.java:23)
Hi Team,
I just installed
and I am trying to play around for fun, I found YahooFinance.get("STOCK_NAME") is throwing an exception.
Here is the log from console for stacktrace
Here is the code that has been giving me issue -
The text was updated successfully, but these errors were encountered: