# Unzip Error Cannot read property 'getNode' of undefined"

**URL:** <https://discourse.nodered.org/t/unzip-error-cannot-read-property-getnode-of-undefined/45953>\
**Category:** General\
**Created:** [20 May 2021 01:07 UTC](https://discourse.nodered.org/t/unzip-error-cannot-read-property-getnode-of-undefined/45953 "2021-05-20T01:07:06Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![minhhn0205](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/minhhn0205/32/29062_2.png) [@minhhn0205](https://discourse.nodered.org/u/minhhn0205)\
**Post date:** [20 May 2021 01:07 UTC](https://discourse.nodered.org/t/unzip-error-cannot-read-property-getnode-of-undefined/45953/1 "2021-05-20T01:07:06Z")

</div>

Hi,

I use [node-red-contrib-zip](https://flows.nodered.org/node/node-red-contrib-zip) node to unzip the zip file.  
With version **1.0.0** , unzip is OK, but the latest version is currently **1.1.0**. then unzip error as attached picture.  
Anyone have the same error as me? ☹

 ![unzip](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/9/4/947dea9a6987c2d5dda69acd23161b1bc3478c62.png)

```auto
[{"id":"6f540e71.39d5a","type":"inject","z":"8289d019.722ce","name":"","topic":"","payload":"","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":170,"y":2500,"wires":[["286c8a8c.05da26"]]},{"id":"286c8a8c.05da26","type":"change","z":"8289d019.722ce","name":"","rules":[{"t":"set","p":"filename","pt":"msg","to":"D:\\Work\\DataTest.zip","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":330,"y":2500,"wires":[["5613d8b8.b08818"]]},{"id":"227c1acb.66ff26","type":"zip","z":"8289d019.722ce","name":"","mode":"decompress","filename":"","compressionlevel":6,"outasstring":false,"x":630,"y":2500,"wires":[["e0483459.b852d8"]]},{"id":"5613d8b8.b08818","type":"file in","z":"8289d019.722ce","name":"","filename":"","format":"","chunk":false,"sendError":false,"encoding":"none","x":490,"y":2500,"wires":[["227c1acb.66ff26"]]},{"id":"e0483459.b852d8","type":"debug","z":"8289d019.722ce","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","x":770,"y":2500,"wires":[]}]

```

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [20 May 2021 07:01 UTC](https://discourse.nodered.org/t/unzip-error-cannot-read-property-getnode-of-undefined/45953/2 "2021-05-20T07:01:59Z")

</div>

I would suggest you report this to the author on the GitHub page [Issues · gfcittolin/node-red-contrib-zip · GitHub](https://github.com/gfcittolin/node-red-contrib-zip/issues?q=is%3Aopen+is%3Aissue)

---

<div class="post-metadata">

**Author:** ![minhhn0205](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/minhhn0205/32/29062_2.png) [@minhhn0205](https://discourse.nodered.org/u/minhhn0205)\
**Post date:** [20 May 2021 07:31 UTC](https://discourse.nodered.org/t/unzip-error-cannot-read-property-getnode-of-undefined/45953/3 "2021-05-20T07:31:29Z")

</div>

> [@minhhn0205](#):
>
> 1.1.0

Yes, I reported this to the author.

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [20 May 2021 07:40 UTC](https://discourse.nodered.org/t/unzip-error-cannot-read-property-getnode-of-undefined/45953/4 "2021-05-20T07:40:05Z")

</div>

You can install the older version from the command line.

1. open a terminal window
2. change directories to the .node-red folder
3. enter  
npm install node-red-contrib-zip@1.0.0

---

<div class="post-metadata">

**Author:** ![minhhn0205](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/minhhn0205/32/29062_2.png) [@minhhn0205](https://discourse.nodered.org/u/minhhn0205)\
**Post date:** [20 May 2021 07:58 UTC](https://discourse.nodered.org/t/unzip-error-cannot-read-property-getnode-of-undefined/45953/5 "2021-05-20T07:58:16Z")

</div>

Because version 1.0.0 when **unzip exception** occurs it cannot be caught by `catch` node,  
so I want to use version 1.1.0

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [20 May 2021 11:22 UTC](https://discourse.nodered.org/t/unzip-error-cannot-read-property-getnode-of-undefined/45953/6 "2021-05-20T11:22:42Z")

</div>

What does the file contain?  
What version of NR are you running?

---

<div class="post-metadata">

**Author:** ![minhhn0205](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/minhhn0205/32/29062_2.png) [@minhhn0205](https://discourse.nodered.org/u/minhhn0205)\
**Post date:** [21 May 2021 00:49 UTC](https://discourse.nodered.org/t/unzip-error-cannot-read-property-getnode-of-undefined/45953/7 "2021-05-21T00:49:14Z")

</div>

Inside the zip file contains text files.  
I'm using NR v0.20.7

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [21 May 2021 07:26 UTC](https://discourse.nodered.org/t/unzip-error-cannot-read-property-getnode-of-undefined/45953/8 "2021-05-21T07:26:03Z")

</div>

Why are you using such an old version of node-red? It is currently at v1.3.5

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [21 May 2021 07:39 UTC](https://discourse.nodered.org/t/unzip-error-cannot-read-property-getnode-of-undefined/45953/9 "2021-05-21T07:39:05Z")

</div>

@zenofmud I'm still running 0.9 on one box... if it works don't fix it. Updating it won't fix this node.

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [21 May 2021 09:58 UTC](https://discourse.nodered.org/t/unzip-error-cannot-read-property-getnode-of-undefined/45953/10 "2021-05-21T09:58:25Z")

</div>

Can you provide a file that causes the issue. I'm not able to reproduce your issue.

---

<div class="post-metadata">

**Author:** ![minhhn0205](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/minhhn0205/32/29062_2.png) [@minhhn0205](https://discourse.nodered.org/u/minhhn0205)\
**Post date:** [22 May 2021 17:59 UTC](https://discourse.nodered.org/t/unzip-error-cannot-read-property-getnode-of-undefined/45953/11 "2021-05-22T17:59:16Z")

</div>

I tried with NR v1.1.3, unzip file is OK  
Maybe the error is due to the old version of NR....

---

<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:** [21 July 2021 18:00 UTC](https://discourse.nodered.org/t/unzip-error-cannot-read-property-getnode-of-undefined/45953/12 "2021-07-21T18:00:07Z")

</div>

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