Reputation: 63
Today I found an issue with application insights. Now it returns me 400 error when I try to track event:
POST https://dc.services.visualstudio.com/v2/track 400 (106: Field 'type' on type 'Device' is of incorrect type. Expected: string, Actual: undefined)
Nothing was changed that can lead to this issues. If I event try to provide it with type field it just cause an other error (type for User).
I'm using app insights via angularJs module.
Can anybody help me?
Thanks!
Upvotes: 2
Views: 6475
Reputation: 293
Got fixed in the latest version of the plugin (0.2.8). An update of the nuget package fixed this problem.
https://github.com/khaines/angular-applicationinsights/issues/35
Upvotes: 0
Reputation: 2456
The problem is SDK that you're using, it is community supported, so we are not doing validation on this SDK before making changes to our data collection endpoint. You can see there's already an issue opened against this SDK to address the problem that you are describing.
We recommend using officially supported JS SDK to ensure compatibility with data collection endpoint. We are continuously making improvements and recently added auto-collection of AJAX requests.
Upvotes: 1