Note, the script successfully create()s a new ipfs node, and can node.add() and node.pin.add() without problem. Any ideas why the remote service part is undefined? Full error below.
Thank you very much for your help!
(node:9004) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'service' of undefined
at main (c:\Users\me\myproject\pinRemote.js:38:24)
at emitUnhandledRejectionWarning (internal/process/promises.js:168:15)
at processPromiseRejections (internal/process/promises.js:247:11)
at processTicksAndRejections (internal/process/task_queues.js:94:32)
(node:9004) TypeError: Cannot read property 'service' of undefined
at main (c:\Users\me\myproject\pinRemote.js:38:24)
(node:9004) [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.
at emitDeprecationWarning (internal/process/promises.js:180:11)
at processPromiseRejections (internal/process/promises.js:249:13)
at processTicksAndRejections (internal/process/task_queues.js:94:32)