harmonydata / harmonydata/harmonyapi
Error saving cache
- Langage dominant
- Python
- Étoiles
- 2
- Forks
- 16
- Merge moyen
- 1 min
- PR mergées (30 j)
- 1
Description
## 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?
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Piste de recherche
Reproduisez l’échec avec la commande Docker documentée et recherchez dans la base de code "Could not save vectors cache" ou la gestion du cache des vecteurs. Confirmez comment le ndarray est sérialisé et vérifiez qu’une exécution d’harmonisation enregistre le cache sans l’erreur de sérialisation JSON.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- docker, numpy, python
- Domaine
- backend, data
- Type d'issue
- Bug
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Activité
- À l'abandon
- Clarté
- À clarifier
- Accessibilité débutants
- 35/100