# TypeError: The "options" argument must be of type object. Received an instance of Array

**URL:** <https://discourse.nodered.org/t/typeerror-the-options-argument-must-be-of-type-object-received-an-instance-of-array/67365>\
**Category:** General\
**Created:** [5 September 2022 22:45 UTC](https://discourse.nodered.org/t/typeerror-the-options-argument-must-be-of-type-object-received-an-instance-of-array/67365 "2022-09-05T22:45:43Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![yimin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/yimin/32/62608_2.png) [@yimin](https://discourse.nodered.org/u/yimin)\
**Post date:** [5 September 2022 22:45 UTC](https://discourse.nodered.org/t/typeerror-the-options-argument-must-be-of-type-object-received-an-instance-of-array/67365/1 "2022-09-05T22:45:43Z")

</div>

Hi,  
When I run the examples of machine-learning-v2

[https://github.com/hbouvier/node-red-contrib-machine-learning](https://github.com/hbouvier/node-red-contrib-machine-learning)

after deploying, the debug window showed error:  
TypeError: The "options" argument must be of type object. Received an instance of Array

My Node-RED is running on windows,(also tried on linux, the same error).

```auto
node --version v16.16.0
Node-RED version: v3.0.2

```

Does anybody know the problem?

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/6/a/6a2c8e07f98dc8736e44eb51c18ee4dba33e8132.png)

---

<div class="post-metadata">

**Author:** ![Sean-McG](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/sean-mcg/32/54677_2.png) [@Sean-McG](https://discourse.nodered.org/u/Sean-McG)\
**Post date:** [5 September 2022 22:54 UTC](https://discourse.nodered.org/t/typeerror-the-options-argument-must-be-of-type-object-received-an-instance-of-array/67365/2 "2022-09-05T22:54:59Z")

</div>

The node has not been updated in 4 years or so, and neither this version or the one it is forked from seem to be active.

It seems you are not the only one with this issue

[TypeError using the node · Issue #12 · GabrieleMaurina/node-red-contrib-machine-learning · GitHub](https://github.com/GabrieleMaurina/node-red-contrib-machine-learning/issues/12)

---

<div class="post-metadata">

**Author:** ![yimin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/yimin/32/62608_2.png) [@yimin](https://discourse.nodered.org/u/yimin)\
**Post date:** [6 September 2022 15:11 UTC](https://discourse.nodered.org/t/typeerror-the-options-argument-must-be-of-type-object-received-an-instance-of-array/67365/3 "2022-09-06T15:11:53Z")

</div>

Hi @Sean-McG

Thank you for your reply.  
Yeah, it's strange.

---

<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:** [5 November 2022 15:11 UTC](https://discourse.nodered.org/t/typeerror-the-options-argument-must-be-of-type-object-received-an-instance-of-array/67365/4 "2022-11-05T15:11:54Z")

</div>

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