Skip to content

Commit

Permalink
cleanup, update CHANGELOG.md
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitryk-dk committed Jul 3, 2024
1 parent d89c99f commit 551cd20
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## tip

* BUGFIX: fix bug with parsing response when one of the field contains ANSI escape sequences. See [this issue](https://github.com/VictoriaMetrics/victorialogs-datasource/issues/24).

## v0.2.3

* BUGFIX: fix bug with displaying response when one of the stream field is defined and lines are not collected. See [this issue](https://github.com/VictoriaMetrics/victorialogs-datasource/issues/34).
Expand Down
2 changes: 1 addition & 1 deletion pkg/plugin/response.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ func parseStreamResponse(reader io.Reader) backend.DataResponse {
scanner := bufio.NewScanner(reader)

for scanner.Scan() {
value, err := fastjson.Parse(scanner.Text())
value, err := fastjson.ParseBytes(scanner.Bytes())
if err != nil {
return newResponseError(fmt.Errorf("error decode response: %s", err), backend.StatusInternal)
}
Expand Down

0 comments on commit 551cd20

Please sign in to comment.