-
Notifications
You must be signed in to change notification settings - Fork 243
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG]: Getting Error AI (Internal): 24 message:"Missing required field specification. The field is required but not present on source" props:"{field:id,name:baseData}"
#2469
Comments
How are you using the SDK, the Here is the only location where we report this critical error ApplicationInsights-JS/channels/applicationinsights-channel-js/src/Serializer.ts Lines 74 to 78 in 4bb6caa
Can you provide a JSON dump of the telemetry you are trying to report so that we can check if this is a special case that we need to handle? |
We are using the Snippet Setup to initialise the it which is mentioned in link we are calling below function to add telemetry and we are able to see this in Application insights with error.
Also we are using click analytics plugin in our application below request is seen in the network tab from the javascript SDK.
|
@kishor-dabi do you mind sharing your config and when do you call the trackPageview? Based on the code, baseData.id is required for pageview events, and it is set when we create data envelop ApplicationInsights-JS/channels/applicationinsights-channel-js/src/EnvelopeCreator.ts Lines 280 to 285 in 9a1e749
so if none id can be retrieved from the original telemetry item, it will be default to trace id. So I assume your pageview might be called before the sdk is fully initialized. |
@Karlie-777 please find below configuration object
|
@kishor-dabi I am curious why the {...autocaputure : true} is at the extensions sections? and dataTags config is duplicated inside extensionConfig? (i assume it might the formatting issue) |
one example of config:
|
Description/Screenshot
On logging custom messages on Application Insights, I am getting below error
AI (Internal): 24 message:"Missing required field specification. The field is required but not present on source" props:"{field:id,name:baseData}"
Steps to Reproduce
Expected behavior
it should not log this error on Application Insights.
The text was updated successfully, but these errors were encountered: