You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
2024/10/28 11:26:34.254027 [prometheus_write_output:x] failed to convert message to event: failed to parse json {"af-data":[,{"af-name":"ipv6","number-of-bestpaths":0}]}: invalid character ',' looking for beginning of value
I think the issue is that the router sending garbage in the field:
case *gnmi.TypedValue_JsonIetfVal:
jsondata = updValue.GetJsonIetfVal()
case *gnmi.TypedValue_JsonVal:
jsondata = updValue.GetJsonVal()
If that is the case, I will open a case with the manufacturer, however I would need to precisely dump the response from the device. Is there a way to do that ?
Secondly, could we make the json parsing more forgiving (custom parser maybe) ?
The text was updated successfully, but these errors were encountered:
I have the following logs on my instance:
I modified the event.go file to display the actual string that fails to parse like so: https://github.com/netixx/gnmic/blob/feat/event-format-more-info/pkg/formatters/event.go#L253-L254
The subscription is as follows:
I think the issue is that the router sending garbage in the field:
If that is the case, I will open a case with the manufacturer, however I would need to precisely dump the response from the device. Is there a way to do that ?
Secondly, could we make the json parsing more forgiving (custom parser maybe) ?
The text was updated successfully, but these errors were encountered: