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 还没有评估数据。