The error 'Cannot read property 'request-id' of undefined' occurs when the 'innerError' property is not defined in the error object. In this case, it seems like there is an error while creating an event in Office 365 via Node.js.

To fix this error, you can check if the 'innerError' property exists in the error object before accessing its 'request-id' property. For example:

if (error.innerError && error.innerError['request-id']) {
  console.log('Error creating event: ', error.innerError['request-id']);
} else {
  console.log('Error creating event: ', error);
}

This will check if the 'innerError' property exists and then access its 'request-id' property only if it exists. If it doesn't exist, it will log the entire error object.

Office 365 Event Creation Error: 'Cannot read property 'request-id' of undefined'

原文地址: https://www.cveoy.top/t/topic/lHfB 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录