ActivityWatch / ActivityWatch/aw-client-js
String response causes TypeError in getEvents
オープン
- 主要言語
- TypeScript
- スター
- 40
- フォーク
- 20
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
I am not entirely sure how, but it seems to be possible for the axios res.data to be a string, despite the content-type being correctly set to json, causing the snippet below to error with `TypeError: n.forEach is not a function`. This happens with both aw-server and aw-server-rust, and only in Firefox.
https://github.com/ActivityWatch/aw-client-js/blob/39868c71e48a23193aed77167894917ea423f812/src/aw-client.ts#L206-L211
https://github.com/ActivityWatch/aw-client-js/blob/39868c71e48a23193aed77167894917ea423f812/src/aw-client.ts#L99-L103
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
評価
この issue はまだ評価されていません。