Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to fetch stock price #327

Open
ashishsantikari opened this issue Mar 1, 2025 · 2 comments
Open

Failed to fetch stock price #327

ashishsantikari opened this issue Mar 1, 2025 · 2 comments

Comments

@ashishsantikari
Copy link

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:

  1. Add a stock e.g. CDSL to the ledger.
  2. Configure the commodity as a stock. Use yahoo as the provider and the ticker symbol as CDSL.NS
  3. Click Save and update prices.
  4. See error

Expected behavior
The prices must be fetched and stored in the cache

Screenshots
Image

Journal

2025/03/01 Test Stock
    Assets:Investments:CDSL     CDSL 1 @ 400 INR
@ananthakumaran
Copy link
Owner

ananthakumaran commented Mar 2, 2025 via email

@ashishsantikari
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants