-
-
Notifications
You must be signed in to change notification settings - Fork 19
Open
Description
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.
Lines 206 to 211 in 39868c7
| const events = await this._get("/0/buckets/" + bucketId + "/events", { | |
| params, | |
| }); | |
| events.forEach((event: IEvent) => { | |
| event.timestamp = new Date(event.timestamp); | |
| }); |
Lines 99 to 103 in 39868c7
| private async _get(endpoint: string, params: object = {}) { | |
| return this.req | |
| .get(endpoint, { ...params, signal: this.controller.signal }) | |
| .then((res) => (res && res.data) || res); | |
| } |
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels