harmonydata / harmonydata/harmonyapi

Error saving cache

Open
#19 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Python
Stars
2
Forks
16
Avg merge
1m
Merged PRs (30d)
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?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.