Failed to fetch stock price
Describe your Environment OS: Mac Sequoia 15.3.1 (silicon) Paisa Version: 0.7.1 App Variant: Desktop
Describe the bug Fetching stock data from yahoo does not work. Fails with the below error logs. Screenshot below
2025-03-01 23:29:44
ERROR
invalid character 'E' looking for beginning of value
file=/Users/runner/work/paisa/paisa/internal/model/model.go:87func=github.com/ananthakumaran/paisa/internal/model.SyncCommodities
2025-03-01 23:29:44
INFO
Fetching stock price history from Yahoo
file=/Users/runner/work/paisa/paisa/internal/scraper/stock/yahoo.go:56func=github.com/ananthakumaran/paisa/internal/scraper/stock.GetHistory
To Reproduce Steps to reproduce the behavior:
- Add a stock e.g. CDSL to the ledger.
- Configure the commodity as a stock. Use yahoo as the provider and the ticker symbol as CDSL.NS
- Click Save and update prices.
- See error
Expected behavior The prices must be fetched and stored in the cache
Screenshots
Journal
2025/03/01 Test Stock
Assets:Investments:CDSL CDSL 1 @ 400 INR
This should be fixed on 7.3
On Sun, 2 Mar, 2025, 4:05 am Ashish Santikari, @.***> wrote:
Describe your Environment OS: Mac Sequoia 15.3.1 (silicon) Paisa Version: 0.7.1 App Variant: Desktop
Describe the bug Fetching stock data from yahoo does not work. Fails with the below error logs. Screenshot below
2025-03-01 23:29:44 ERROR invalid character 'E' looking for beginning of value file=/Users/runner/work/paisa/paisa/internal/model/model.go:87func=github.com/ananthakumaran/paisa/internal/model.SyncCommodities 2025-03-01 http://github.com/ananthakumaran/paisa/internal/model.SyncCommodities2025-03-01 23:29:44 INFO Fetching stock price history from Yahoo file=/Users/runner/work/paisa/paisa/internal/scraper/stock/yahoo.go:56func=github.com/ananthakumaran/paisa/internal/scraper/stock.GetHistory
To Reproduce Steps to reproduce the behavior:
- Add a stock e.g. CDSL to the ledger.
- Configure the commodity as a stock. Use yahoo as the provider and the ticker symbol as CDSL.NS
- Click Save and update prices.
- See error
Expected behavior The prices must be fetched and stored in the cache
Screenshots image.png (view on web) https://github.com/user-attachments/assets/54fdd029-d582-4703-b34d-bc902a2a3082
Journal
2025/03/01 Test Stock Assets:Investments:CDSL CDSL 1 @ 400 INR
— Reply to this email directly, view it on GitHub https://github.com/ananthakumaran/paisa/issues/327, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABEN5TNM4SO6RYAVIPN7XD2SIY2PAVCNFSM6AAAAABYERIJ4KVHI2DSMVQWIX3LMV43ASLTON2WKOZSHA4DSMJZGM2DCMI . You are receiving this because you are subscribed to this thread.Message ID: @.***> [image: ashishsantikari]ashishsantikari created an issue (ananthakumaran/paisa#327) https://github.com/ananthakumaran/paisa/issues/327
Describe your Environment OS: Mac Sequoia 15.3.1 (silicon) Paisa Version: 0.7.1 App Variant: Desktop
Describe the bug Fetching stock data from yahoo does not work. Fails with the below error logs. Screenshot below
2025-03-01 23:29:44 ERROR invalid character 'E' looking for beginning of value file=/Users/runner/work/paisa/paisa/internal/model/model.go:87func=github.com/ananthakumaran/paisa/internal/model.SyncCommodities 2025-03-01 http://github.com/ananthakumaran/paisa/internal/model.SyncCommodities2025-03-01 23:29:44 INFO Fetching stock price history from Yahoo file=/Users/runner/work/paisa/paisa/internal/scraper/stock/yahoo.go:56func=github.com/ananthakumaran/paisa/internal/scraper/stock.GetHistory
To Reproduce Steps to reproduce the behavior:
- Add a stock e.g. CDSL to the ledger.
- Configure the commodity as a stock. Use yahoo as the provider and the ticker symbol as CDSL.NS
- Click Save and update prices.
- See error
Expected behavior The prices must be fetched and stored in the cache
Screenshots image.png (view on web) https://github.com/user-attachments/assets/54fdd029-d582-4703-b34d-bc902a2a3082
Journal
2025/03/01 Test Stock Assets:Investments:CDSL CDSL 1 @ 400 INR
— Reply to this email directly, view it on GitHub https://github.com/ananthakumaran/paisa/issues/327, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABEN5TNM4SO6RYAVIPN7XD2SIY2PAVCNFSM6AAAAABYERIJ4KVHI2DSMVQWIX3LMV43ASLTON2WKOZSHA4DSMJZGM2DCMI . You are receiving this because you are subscribed to this thread.Message ID: @.***>
025-03-02 10:42:21
INFO
GET 200 540ms /api/gain/Assets:Equity:TATASTEEL
clientIP=192.0.2.1file=/Users/runner/work/paisa/paisa/internal/server/logger.go:43func=github.com/ananthakumaran/paisa/internal/server.Build.Logger.func56referer=wails://wails/assets/gain/Assets:Equity:TATASTEEL
2025-03-02 10:42:20
ERROR
POST 500 3704ms /api/sync
clientIP=192.0.2.1file=/Users/runner/work/paisa/paisa/internal/server/logger.go:39func=github.com/ananthakumaran/paisa/internal/server.Build.Logger.func56referer=wails://wails/assets/gain/Assets:Equity:TATASTEEL
Fails again