Kylin-Guo commented on issue #2284:
URL: https://github.com/apache/hertzbeat/issues/2284#issuecomment-2230364700

   > Use JsonPath: 
https://hertzbeat.apache.org/zh-cn/docs/advanced/extend-http-example-hertzbeat
   
   但 JsonPath 解析方式要求接口返回的内容必须为 Json 格式,但在某些时间并不能保证
   例如某个接口经由 Nginx 进行代理,正常响应的情况下接口的确会返回 Json 格式,但当接口异常, Nginx 回报 HTTP 502 or 504 
的时候,格式会变成 HTML,这个时候使用 JsonPath 解析应该会出现异常


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to