TypeError: Cannot read properties of null (reading '@odata.type')
at JsonParseNode.getChildNode (/home/slevert/src/temp/mvp-msgraph-typescript/node_modules/@microsoft/kiota-serialization-json/dist/cjs/src/jsonParseNode.js:12:77)
at createEventMessageDetailFromDiscriminatorValue (/home/slevert/src/temp/mvp-msgraph-typescript/node_modules/@microsoft/msgraph-sdk/models/index.js:9846:40)
at JsonParseNode.getObjectValue (/home/slevert/src/temp/mvp-msgraph-typescript/node_modules/@microsoft/kiota-serialization-json/dist/cjs/src/jsonParseNode.js:57:88)
at eventDetail (/home/slevert/src/temp/mvp-msgraph-typescript/node_modules/@microsoft/msgraph-sdk/models/index.js:27258:319)
at /home/slevert/src/temp/mvp-msgraph-typescript/node_modules/@microsoft/kiota-serialization-json/dist/cjs/src/jsonParseNode.js:75:21
at Array.forEach (<anonymous>)
at JsonParseNode.assignFieldValues (/home/slevert/src/temp/mvp-msgraph-typescript/node_modules/@microsoft/kiota-serialization-json/dist/cjs/src/jsonParseNode.js:72:44)
at JsonParseNode.getObjectValue (/home/slevert/src/temp/mvp-msgraph-typescript/node_modules/@microsoft/kiota-serialization-json/dist/cjs/src/jsonParseNode.js:62:18)
at lastMessagePreview (/home/slevert/src/temp/mvp-msgraph-typescript/node_modules/@microsoft/msgraph-sdk/models/index.js:27148:410)
at /home/slevert/src/temp/mvp-msgraph-typescript/node_modules/@microsoft/kiota-serialization-json/dist/cjs/src/jsonParseNode.js:75:21
When removing the expand, everything is back to normal.
When using:
The generated RequestInformation:
I automatically get an error
When removing the
expand
, everything is back to normal.RequestInformation: