harmonydata / harmonydata/harmonyapi

Error saving cache

オープン
#19 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
bug
主要言語
Python
スター
2
フォーク
16
平均マージ
1分
マージ済み PR(30日)
1

説明

## 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?

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

ドキュメントに記載された Docker コマンドで失敗を再現し、コードベースで "Could not save vectors cache" またはベクトルキャッシュの処理を検索します。ndarray がどのようにシリアライズされるかを確認し、調和化の実行によって JSON シリアライズエラーなしでキャッシュが保存されることを検証します。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
docker, numpy, python
領域
backend, data
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。