ananthakumaran / paisa

Paisa – Personal Finance Manager. https://paisa.fyi demo: https://demo.paisa.fyi
https://paisa.fyi
GNU Affero General Public License v3.0
2.34k stars 117 forks source link

Fatal Error When Updating Mutual Fund Portfolios #61

Closed dvo79 closed 9 months ago

dvo79 commented 10 months ago

When attempting to update mutual fund portfolios or update commodity prices, I receive a fatal error. When selecting "Update Mutual Fund portfolios", the error is:

FATAL invalid character 'C' looking for beginning of value file=D:/a/paisa/paisa/internal/model/model.go:98func=github.com/ananthakumaran/paisa/internal/model.SyncPortfolios

When selecting "Update prices", the error is: FATAL invalid character '<' looking for beginning of value file=D:/a/paisa/paisa/internal/model/model.go:71func=github.com/ananthakumaran/paisa/internal/model.SyncCommodities

I only have two commodities defined in the config file:

commodities:

These functions appear to work normally when the F stock listing is the only one, but break when I attempt to add the FSMEX mutual fund listing.

Environment: OS: Windows 10 Paisa Version: 0.5.2 App Variant: Desktop

ananthakumaran commented 10 months ago

Could you set the type to stock for now? I will fix the issue later, it tries to fetch the mutual fund data from different provider which fails.

dvo79 commented 10 months ago

Ah, great, changing the type to stock seems to work - thanks!

ananthakumaran commented 10 months ago

It's an actual bug, I will keep it open till it's fixed