我想使用Application Insights(https://github.com/Microsoft/cordova-plugin-ms-appinsights插件)跟踪移动应用中的所有错误。但是,当我调用appInsights.trackException
函数时,出现以下错误消息:
Failed to send telemetry:
{"itemsReceived":1,
"itemsAccepted":0,
"errors":[
{
"index":0,
"statusCode":400,
"message":"109: Field 'method' on type 'StackFrame' is required but missing or empty. Expected: string, Actual: "}
]
}
如果我调用appInsights.trackPageView
函数,那么它在状态码200(OK)下可以正常工作。
我也尝试过此(https://stackoverflow.com/a/30066390/5251807)解决方案。但是,它对我不起作用。
版本信息:
科尔多瓦版本:8.0.0
ionic(Ionic CLI):3.20.0
节点:v6.11.4
npm:5.5.1