harmonydata / harmonydata/harmonyapi

Error saving cache

Aperta
#19 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
bug
Lingua principale
Python
Stelle
2
Fork
16
Merge medio
1m
PR unite (30g)
1

Descrizione

## Description

I found this error in the Harmony prod server logs. Not sure exactly which part of the code base it originates from.

```
INFO: Cache instruments_cache.json saved...
Could not save vectors cache: Object of type ndarray is not JSON serializable.
```

## Environment

Centos

## How to Reproduce

1. Run Harmony in Docker `docker run -p 8000:8000 harmonydata/harmonyapi:20250311105945_1df2e89`
2. Run any harmonisation
3.

## Expected Behaviour

The cache should be saved without errors. It looks like we're trying to serialise a Numpy array to JSON. Maybe you can find that part of the code and switch it to Pickle?

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Direzione di ricerca

Reproduce the failure with the documented Docker command and search the codebase for "Could not save vectors cache" or the vectors cache handling. Confirm how the ndarray is serialized and verify that a harmonisation run saves the cache without the JSON serialization error.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
docker, numpy, python
Ambito
backend, data
Tipo di issue
Bug
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Da chiarire
Idoneità per principianti
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.