# Using node-red-contrib-tfjs-coco-ssd locally

**URL:** https://discourse.nodered.org/t/using-node-red-contrib-tfjs-coco-ssd-locally/38856
**Category:** General
**Created:** [9 January 2021 18:03 UTC](https://discourse.nodered.org/t/using-node-red-contrib-tfjs-coco-ssd-locally/38856 "2021-01-09T18:03:52Z")
**Posts on this page:** 14
**Page:** 1

<div class="post-metadata">

### Author: ![Lupin\_III](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/lupin_iii/32/67650_2.png) [@Lupin\_III](https://discourse.nodered.org/u/Lupin_III)
#### Post date: [9 January 2021 18:03 UTC](https://discourse.nodered.org/t/using-node-red-contrib-tfjs-coco-ssd-locally/38856/1 "2021-01-09T18:03:52Z")

</div>

Hi, I'm trying to use node-red-contrib-tfjs-coco-ssd locally (offline) withouth success.  
windows 10  
node-red V1.2.6  
node.js V14.15.4  
I tryed installing the node in both way, via "npm" and "manage palette": It works great if I leave blank the URL setting (so using the on-line model), but I cannot find the correct path to make it working offline.

---

<div class="post-metadata">

### Author: ![Lupin\_III](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/lupin_iii/32/67650_2.png) [@Lupin\_III](https://discourse.nodered.org/u/Lupin_III)
#### Post date: [10 January 2021 09:29 UTC](https://discourse.nodered.org/t/using-node-red-contrib-tfjs-coco-ssd-locally/38856/2 "2021-01-10T09:29:11Z")

</div>

![Immagine 2021-01-10 101558](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/3/7/37eb871e95794f6580c2c3ba77aff16ce2be7294.jpeg)

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [10 January 2021 10:08 UTC](https://discourse.nodered.org/t/using-node-red-contrib-tfjs-coco-ssd-locally/38856/3 "2021-01-10T10:08:54Z")

</div>

I may be wrong but that looks as if it may be an issue that the contrib node should have caught to prevent node-red from crashing. Tagging @dceejay as he is the maintainer of the node I believe.

For the future please try to copy/paste output here rather than screenshot it. When pasting use the `</>` button at the top of the forum text window.

---

<div class="post-metadata">

### Author: ![Lupin\_III](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/lupin_iii/32/67650_2.png) [@Lupin\_III](https://discourse.nodered.org/u/Lupin_III)
#### Post date: [10 January 2021 14:20 UTC](https://discourse.nodered.org/t/using-node-red-contrib-tfjs-coco-ssd-locally/38856/4 "2021-01-10T14:20:19Z")

</div>

Thanks Colin. Here the output message

```auto
10 Jan 15:19:12 - [info] Server now running at http://127.0.0.1:1880/
(node:10136) UnhandledPromiseRejectionWarning: FetchError: request to http://localhost:1880/coco/model.json failed, reason: connect ECONNREFUSED 127.0.0.1:1880
    at ClientRequest.<anonymous> (C:\Users\Io\.node-red\node_modules\node-fetch\lib\index.js:1393:11)
    at ClientRequest.emit (events.js:315:20)
    at Socket.socketErrorListener (_http_client.js:469:9)
    at Socket.emit (events.js:315:20)
    at emitErrorNT (internal/streams/destroy.js:106:8)
    at emitErrorCloseNT (internal/streams/destroy.js:74:3)
    at processTicksAndRejections (internal/process/task_queues.js:80:21)
(Use `node --trace-warnings ...` to show where the warning was created)
(node:10136) 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(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:10136) [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.

```

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [10 January 2021 14:33 UTC](https://discourse.nodered.org/t/using-node-red-contrib-tfjs-coco-ssd-locally/38856/5 "2021-01-10T14:33:07Z")

</div>

The error is caused by the fact that there is you get a connection refused from `http://localhost:1880/coco/model.json`. However that should not cause a crash.

---

<div class="post-metadata">

### Author: ![Lupin\_III](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/lupin_iii/32/67650_2.png) [@Lupin\_III](https://discourse.nodered.org/u/Lupin_III)
#### Post date: [10 January 2021 14:36 UTC](https://discourse.nodered.org/t/using-node-red-contrib-tfjs-coco-ssd-locally/38856/6 "2021-01-10T14:36:05Z")

</div>

Thanks. Can you help me to understand why this happens and how to solve it?

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [10 January 2021 14:44 UTC](https://discourse.nodered.org/t/using-node-red-contrib-tfjs-coco-ssd-locally/38856/7 "2021-01-10T14:44:07Z")

</div>

No, sorry, I don't know anything about that node. That is why I tagged Dave earlier, as he is the maintainer of the node.

---

<div class="post-metadata">

### Author: ![Lupin\_III](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/lupin_iii/32/67650_2.png) [@Lupin\_III](https://discourse.nodered.org/u/Lupin_III)
#### Post date: [10 January 2021 14:54 UTC](https://discourse.nodered.org/t/using-node-red-contrib-tfjs-coco-ssd-locally/38856/8 "2021-01-10T14:54:44Z")

</div>

Once you tag someone, is this already informed? Once I tried the message option of the forum, but this actually starts a new topic inviting to the recipient.

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [10 January 2021 15:22 UTC](https://discourse.nodered.org/t/using-node-red-contrib-tfjs-coco-ssd-locally/38856/9 "2021-01-10T15:22:34Z")

</div>

Yes, he should get notified.

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [10 January 2021 15:37 UTC](https://discourse.nodered.org/t/using-node-red-contrib-tfjs-coco-ssd-locally/38856/10 "2021-01-10T15:37:35Z")

</div>

Does the example flow from the node's readme work for you?

---

<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: [10 January 2021 15:54 UTC](https://discourse.nodered.org/t/using-node-red-contrib-tfjs-coco-ssd-locally/38856/11 "2021-01-10T15:54:20Z")

</div>

Today is Sunday so I was taking some time away from the keyboard.  
Yes it shouldn't crash - but it seems like it's coming from inside the tfjs library - I'll have a look.  
Meanwhile you can see the url it is trying to load... - it's getting a 401 from you so presumably you have some form of authentication turned on which it can't just handle - Is there an endpoint where you could move that file to where which you can access locally ?

---

<div class="post-metadata">

### Author: ![Lupin\_III](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/lupin_iii/32/67650_2.png) [@Lupin\_III](https://discourse.nodered.org/u/Lupin_III)
#### Post date: [10 January 2021 17:07 UTC](https://discourse.nodered.org/t/using-node-red-contrib-tfjs-coco-ssd-locally/38856/12 "2021-01-10T17:07:54Z")

</div>

Hi dceejay, thanks a lot. Yes, it's Sunday and I understand 🙂.

> [@dceejay](#):
>
> Is there an endpoint where you could move that file to where which you can access locally ?

Sorry, I don't understand what you mean and what attempt I should make. I set both password protection in settings.js: flows and dashboard

---

<div class="post-metadata">

### Author: ![Lupin\_III](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/lupin_iii/32/67650_2.png) [@Lupin\_III](https://discourse.nodered.org/u/Lupin_III)
#### Post date: [20 January 2021 09:08 UTC](https://discourse.nodered.org/t/using-node-red-contrib-tfjs-coco-ssd-locally/38856/13 "2021-01-20T09:08:41Z")

</div>

Hi, I'm making several trying but without success. I always get back error messages.  
Any help is welcome.

---

<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 March 2021 09:08 UTC](https://discourse.nodered.org/t/using-node-red-contrib-tfjs-coco-ssd-locally/38856/14 "2021-03-21T09:08:55Z")

</div>

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