harmonydata / harmonydata/harmonyapi
Error saving cache
- Lenguaje dominante
- Python
- Estrellas
- 2
- Forks
- 16
- Merge medio
- 1 min
- PR fusionados (30 d)
- 1
Descripción
## 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?
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Línea de trabajo
Reproduce el fallo con el comando de Docker documentado y busca en el código "Could not save vectors cache" o el manejo de la caché de vectores. Confirma cómo se serializa el ndarray y verifica que una ejecución de armonización guarde la caché sin el error de serialización JSON.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- docker, numpy, python
- Área
- backend, data
- Tipo de issue
- Error
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Estado de actividad
- Estancado
- Claridad
- Necesita aclaración
- Aptitud para principiantes
- 35/100