-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Calling the watcher Get watch API endpoint generate malformed json #152865
Comments
Pinging @elastic/es-data-management (Team:Data Management) |
I've transferred this to the Kibana repository, as Elasticsearch itself does not generate any JSON using triple-quotes ( |
Pinging @elastic/platform-deployment-management (Team:Deployment Management) |
Might be related to #13528 |
Pinging @elastic/kibana-management (Team:Kibana Management) |
Elasticsearch Version
8.6.1
Installed Plugins
No response
Java Version
bundled
OS Version
ESS
Problem Description
When using the Get watch API endpoint to export current watches, the JSON generated may not pass validation in either Dev Tools or the Kibana watcher UI.
In particular, this happens in triple quoted strings (e.g.
"""
delimited strings) terminated by a single"
. For instance this is a line being generated by the API output:This line will trigger in error in both dev tools or the watcher interface reporting it as invalid json.
this fixed line works:
Steps to Reproduce
Create a watch where the query is delimited by
"""
. Export this watch with:Try and import the content of the
_source
object withPUT _watcher/watch/<watch_id> {<source>}
.Logs (if relevant)
The text was updated successfully, but these errors were encountered: