-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error decode response: invalid character 'x' in string escape code #24
Comments
Hi, I'm having same issue as you. Maybe this additional info will help someone: |
@dmitryk-dk is this related to the backend of the plugin? |
Hi @Proxymiity ! Can you share what version of the VictoriaLogs you have? Can you share an example of your response from the VMUI you have? |
FYI, I have a working panel with that version. Some are returning "no data" because there is no data in the timerange (which is expected), one is returning data correctly, and some are erroring with the same error you'd find within the first issue comment |
It would be helpful if you could share the response in JSON and remove sensitive data when you get that error. |
By response, do you mean intercept the response from VLogs back to Grafana? |
Yes, or response from vmlogs to vmui. They should be identical. |
Here are the responses from both VictoriaLogs versions (mind the dot at the end of the url): |
Thank you for providing examples. I will check it soon |
Hi @Proxymiity , I think I found the problem and made a draft fix; if you can build a source from my PR and test it, that would be great. I will check the fix on my own |
Hi, thanks for the quick draft. I will look into building the plugin and will keep you informed. |
@Proxymiity, the logs sent from vlogs only proxied to the UI part of the data source, I will think about how it is better to handle those values with colors. I think it should be handle on the UI part of the plugin @Loori-R , @hagen1778 wdyt? @Proxymiity, can you also share the Grafana version that you are using? |
….AppendQuote for encoding JSON strings The strconv.AppendQuote improperly encodes special chars such as \x1b . They must be encoded as \u001b . See VictoriaMetrics/victorialogs-datasource#24
….AppendQuote for encoding JSON strings The strconv.AppendQuote improperly encodes special chars such as \x1b . They must be encoded as \u001b . See VictoriaMetrics/victorialogs-datasource#24
This issue must be fixed in VictoriaLogs v0.27.1. The bugfix is at VictoriaMetrics/VictoriaMetrics@c0caa69 . @Proxymiity , @rkaracic , could you upgrade VictoriaLogs to v0.27.1 and verify whether the issue is fixed there? |
I've had this issue aswell but after upgrading to 0.27.1, it went away. |
I can confirm that issue is gone in 0.27.1 |
fix issue when response contains ANSI escape sequences #24
The problem was fixed on the backend side by VictoriaLogs. |
Hi! The issue was fixed by two separate improvement for VictoriaLogs itself and in the datasource. Please check the release. |
Hi! Apologies for the response delay. I can confirm it is working as expected as of the latest version of vlogs and the patch you made. Thank you! |
…rings with fmt.* functions instead of using "%q" formatter The %q formatter may result in incorrectly formatted JSON string if the original string contains special chars such as \x1b . They must be encoded as \u001b , otherwise the resulting JSON string cannot be parsed by JSON parsers. This is a follow-up for c0caa69 See VictoriaMetrics/victorialogs-datasource#24
…rings with fmt.* functions instead of using "%q" formatter The %q formatter may result in incorrectly formatted JSON string if the original string contains special chars such as \x1b . They must be encoded as \u001b , otherwise the resulting JSON string cannot be parsed by JSON parsers. This is a follow-up for c0caa69 See VictoriaMetrics/victorialogs-datasource#24
Hi,
When using the latest version of VictoriaLogs (0.18.0 as of today, after upgrading from 0.7.0), the datasource stops working.
A simple
_time:5m
orhost:test-server
returns a decoding error in the panel:error decode response: invalid character 'x' in string escape code
No specific error logged in the VictoriaLogs server itself, but the Grafana log has some errors:
The query itself works fine in the vmui. Datasource is on 0.2.1, and when added replies with "This datasource is working".
Rolling back to our known working vlogs version (0.7.0) works well, however we lose new features of the query language.
The text was updated successfully, but these errors were encountered: