我正在使用此处发布的代码尝试检索发件人电子邮件地址表单,在PowerShell中读取收据。对于某些电子邮件,这可行,但对于其他电子邮件则不起作用。
在Outlook中,我可以清楚地看到它来自哪个,但PowerShell会返回一个空白单元格。
请帮忙吗?
undefined
(node:6757) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'forEach' of undefined
at helper (/home/ubuntu/second/web3-node-tutorial/se.js:298:15)
at process._tickCallback (internal/process/next_tick.js:68:7)
at Function.Module.runMain (internal/modules/cjs/loader.js:721:11)
at startup (internal/bootstrap/node.js:228:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:576:3)
(node:6757) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:6757) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
Connected correctly to db
[ { _id: 5b24b4e042ed9c0fed9d1f15,
address: '0x6FD04070704vvvC35194316a9033e10120',
privateKey: '0xc0ea45525dd0a04d6a0f8228czxc1807f6550948fde824d60167c37097c3' },
{ _id: 5b24b4e34257170ff8816e2c,
address: '0x45bCbe21basd830831a2783d620afFF549D5Ce',
privateKey: '0x520dbee37681a33d8c9180419c121d3c5sdfafde7ed3f750f7fc279f757c423' } ]