Getting history of portfolio returns internal server error #38

Closed
opened 2026-03-16 21:23:03 +00:00 by fabioth · 5 comments
fabioth commented 2026-03-16 21:23:03 +00:00 (Migrated from gitlab.esvedra.one)

Tested with
https://bodega.esvedra.one/portfolios/69b805359e823935fafc3760/history?from_date=2021-03-17&to_date=2026-03-16

Tested with \ `https://bodega.esvedra.one/portfolios/69b805359e823935fafc3760/history?from_date=2021-03-17&to_date=2026-03-16`
fabioth commented 2026-03-16 21:23:04 +00:00 (Migrated from gitlab.esvedra.one)

assigned to @gertjan

assigned to @gertjan
fabioth commented 2026-03-16 21:35:28 +00:00 (Migrated from gitlab.esvedra.one)

changed the severity to Critical - S1

changed the severity to **Critical - S1**
gertjan commented 2026-03-17 10:57:09 +00:00 (Migrated from gitlab.esvedra.one)

Fixed in d2c0ea5 (v0.29.2): added an early return [] guard in AssetRepository.get_by_symbols() — pymongo raises ValueError: to_list() length must be greater than 0 when passed an empty symbol set, which is exactly what happens for a portfolio with no holdings.

Fixed in d2c0ea5 (v0.29.2): added an early `return []` guard in `AssetRepository.get_by_symbols()` — pymongo raises `ValueError: to_list() length must be greater than 0` when passed an empty symbol set, which is exactly what happens for a portfolio with no holdings.
gertjan commented 2026-03-17 10:57:15 +00:00 (Migrated from gitlab.esvedra.one)

changed the incident status to Resolved by closing the incident

changed the incident status to **Resolved** by closing the incident
gertjan commented 2026-03-17 10:57:15 +00:00 (Migrated from gitlab.esvedra.one)

changed the incident status to Resolved

changed the incident status to **Resolved**
gertjan (Migrated from gitlab.esvedra.one) closed this issue 2026-03-17 10:57:15 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
gertjan/bodega#38
No description provided.