我想使用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)解决方案 . 但是,它对我不起作用 .

版本信息:

Cordova版本:8.0.0

离子(离子CLI):3.20.0

节点:v6.11.4

npm:5.5.1