# Version v3.0.2 seems not compatible with @particle/node-red-contrib-particle-official 0.1.7

**URL:** <https://discourse.nodered.org/t/version-v3-0-2-seems-not-compatible-with-particle-node-red-contrib-particle-official-0-1-7/66505>\
**Category:** General\
**Created:** [16 August 2022 15:08 UTC](https://discourse.nodered.org/t/version-v3-0-2-seems-not-compatible-with-particle-node-red-contrib-particle-official-0-1-7/66505 "2022-08-16T15:08:10Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![pacitoali](https://avatars.discourse-cdn.com/v4/letter/p/a5b964/32.png) [@pacitoali](https://discourse.nodered.org/u/pacitoali)\
**Post date:** [16 August 2022 15:08 UTC](https://discourse.nodered.org/t/version-v3-0-2-seems-not-compatible-with-particle-node-red-contrib-particle-official-0-1-7/66505/1 "2022-08-16T15:08:10Z")

</div>

With version v3.0.2 my NR docker server (node.js v16) stop every 7776 seconds (about 129 minutes), the time for reauthentication.  
I was able to solve it in two ways: reverting NR to v2.2.2 or changing the res.body.expires\_in time (what I get is to reduce the problem).

I also tried another node from other author "node-red-contrib-particle", without success (similar problem?). Probably changed authentication particle's answer and newer versions are more unstable to the change.

This is the error

Reauthenticating...  
Authenticated with Particle  
[red] Uncaught Exception:  
[error] TypeError: Cannot destructure property 'onEvent' of 'undefined' as it is undefined.  
at Api.listenToEventStream (/data/node\_modules/@particle/node-red-contrib-particle-official/src/api.js:53:24)  
at login.then.retryIn (/data/node\_modules/@particle/node-red-contrib-particle-official/src/api.js:169:29)  
at runMicrotasks ()  
at processTicksAndRejections (node:internal/process/task\_queues:96:5)

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [16 August 2022 19:10 UTC](https://discourse.nodered.org/t/version-v3-0-2-seems-not-compatible-with-particle-node-red-contrib-particle-official-0-1-7/66505/2 "2022-08-16T19:10:22Z")

</div>

> [@pacitoali](#):
>
> [red] Uncaught Exception:  
> [error] TypeError: Cannot destructure property 'onEvent' of 'undefined' as it is undefined.  
> at Api.listenToEventStream (/data/node\_modules/@particle/node-red-contrib-particle-official/src/api.js:53:24)  
> at login.then.retryIn (/data/node\_modules/@particle/node-red-contrib-particle-official/src/api.js:169:29)  
> at runMicrotasks ()  
> at processTicksAndRejections (node:internal/process/task\_queues:96:5)

I suspect you need to raise this with the author of the node.

Just as a sanity check - what version of NODEJS is the v2.2.2 running on & what version of NODEJS is v3.0.2 running on?

---

<div class="post-metadata">

**Author:** ![pacitoali](https://avatars.discourse-cdn.com/v4/letter/p/a5b964/32.png) [@pacitoali](https://discourse.nodered.org/u/pacitoali)\
**Post date:** [16 August 2022 22:23 UTC](https://discourse.nodered.org/t/version-v3-0-2-seems-not-compatible-with-particle-node-red-contrib-particle-official-0-1-7/66505/3 "2022-08-16T22:23:50Z")

</div>

Both node.js v16

---

<div class="post-metadata">

**Author:** ![pacitoali](https://avatars.discourse-cdn.com/v4/letter/p/a5b964/32.png) [@pacitoali](https://discourse.nodered.org/u/pacitoali)\
**Post date:** [20 August 2022 13:37 UTC](https://discourse.nodered.org/t/version-v3-0-2-seems-not-compatible-with-particle-node-red-contrib-particle-official-0-1-7/66505/4 "2022-08-20T13:37:50Z")

</div>

I installed in Raspberry Pi (Node v18.7.0) and exactly same problem ☹

Reauthenticating...  
Authenticated with Particle  
20 Aug 15:21:23 - [red] Uncaught Exception:  
20 Aug 15:21:23 - [error] TypeError: Cannot destructure property 'onEvent' of 'undefined' as it is undefined.  
at Api.listenToEventStream (/home/fran/.node-red/node\_modules/@particle/node-red-contrib-particle-official/src/api.js:53:24)  
at login.then.retryIn (/home/fran/.node-red/node\_modules/@particle/node-red-contrib-particle-official/src/api.js:169:29)  
at process.processTicksAndRejections (node:internal/process/task\_queues:95:5)  
nodered.service: Main process exited, code=exited, status=1/FAILURE  
nodered.service: Failed with result 'exit-code'.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [19 October 2022 13:38 UTC](https://discourse.nodered.org/t/version-v3-0-2-seems-not-compatible-with-particle-node-red-contrib-particle-official-0-1-7/66505/5 "2022-10-19T13:38:06Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
