microsoft / vscode-extension-telemetry

Node module to help VS Code extensions send telemetry using application insights
https://www.npmjs.com/package/@vscode/extension-telemetry
Other
125 stars 46 forks source link

"AI (Internal): 46 message: telemetryItem.baseData cannot be null." in payload when sending telemetry #185

Closed sezna closed 11 months ago

sezna commented 11 months ago

Hi!

I'm sending telemetry to a normal AI instance. On the latest version, all of my events that are being sent are failing. It took me a bit to sort out why, because the error is showing up in a peculiar place. The error is in the request to AI, not the response from AI.

In the request that extension-telemetry is making to AI has an error message stuffed in it:

{
  "baseType": "MessageData",
  "baseData": {
    "ver": 2,
    "message": "AI (Internal): 46 message:\"telemetryItem.baseData cannot be null.\"",
    "properties": {}
  }
}

If I downgrade the extension-telemetry package to 0.6.x, then my telemetry shows up in AI as expected. Do you happen to know why such an error message would get stuffed in the request like this?

Thanks for your time.

lramos15 commented 11 months ago

This happens on all telemetry events? And you see it on 0.7.x. and 0.8.x?

sezna commented 11 months ago

I only see it on 0.8.x, I haven't tried 0.7.x. Should I?

I only send two kinds of telemetry, and it happens on both of them.

lramos15 commented 11 months ago

Would you mind sharing an example of an event you send?

sezna commented 11 months ago

Certainly!

Our telemetry types are here, and the invocation is here.

Thanks!

lramos15 commented 11 months ago

Resolved offline, was using the wrong ingestion key