# getParameterValues =\> Task name not recognized

**URL:** <https://forum.genieacs.com/t/getparametervalues-task-name-not-recognized/292>\
**Category:** Uncategorized\
**Created:** [September 12, 2019, 10:01am UTC](https://forum.genieacs.com/t/getparametervalues-task-name-not-recognized/292 "2019-09-12T10:01:33Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![kyob](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/kyob/32/122_2.png) [@kyob](https://forum.genieacs.com/u/kyob)\
**Post date:** [September 12, 2019, 10:01am UTC](https://forum.genieacs.com/t/getparametervalues-task-name-not-recognized/292/1 "2019-09-12T10:01:33Z")

</div>

I try execute task [getParameterValues](https://github.com/genieacs/genieacs/wiki/api-reference#getparametervalues) from API reference.

but it fail with message:  
`2019-09-12T09:54:12.136Z [ERROR] Uncaught exception; pid=1329 exceptionName="Error" exceptionMessage="Task name not recognized" exceptionStack="Error: Task name not recognized\n at nextRpc (/opt/genieacs/dist/bin/genieacs-cwmp:2:122374)\n at process._tickCallback (internal/process/next_tick.js:68:7)" 2019-09-12T09:54:12.151Z [ERROR] Worker died; pid=1329 exitCode=0`

Same errors when I execute my command:  
`curl -i 'http://192.168.12.32:7557/devices/F48CEB-Router-QXNN1J1006025/tasks?timeout=3000&connection_request' -X POST --data '{ "name": "getParameterValues", "parameterNames": ["InternetGatewayDevice.LANDevice.1.WLANConfiguration"] }'`

If it’s important I use docker image **drumsergio/genieacs:1.2.0**

**Question:** I’m doing something wrong or the problem is rather on the GenieACS side

---

<div class="post-metadata">

**Author:** ![zaidka](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/zaidka/32/9_2.png) [@zaidka](https://forum.genieacs.com/u/zaidka)\
**Post date:** [September 14, 2019, 9:28pm UTC](https://forum.genieacs.com/t/getparametervalues-task-name-not-recognized/292/2 "2019-09-14T21:28:12Z")

</div>

I suspect you may have older tasks in the database with an invalid name.

---

<div class="post-metadata">

**Author:** ![kyob](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/kyob/32/122_2.png) [@kyob](https://forum.genieacs.com/u/kyob)\
**Post date:** [September 16, 2019, 10:15am UTC](https://forum.genieacs.com/t/getparametervalues-task-name-not-recognized/292/3 "2019-09-16T10:15:22Z")

</div>

@zaidka Thanks for reply. How can I verify if this is task name issue?

---

<div class="post-metadata">

**Author:** ![Ferdinando](https://avatars.discourse-cdn.com/v4/letter/f/dfb087/32.png) [@Ferdinando](https://forum.genieacs.com/u/Ferdinando)\
**Post date:** [July 22, 2020, 12:41pm UTC](https://forum.genieacs.com/t/getparametervalues-task-name-not-recognized/292/4 "2020-07-22T12:41:17Z")

</div>

Hi,

I got the same error:

2020-05-25T19:35:51.550Z [ERROR] Uncaught exception; pid=79 exceptionName=“Error” exceptionMessage=“Task name not recognized” exceptionStack=“Error: Task name not recognized\n at nextRpc (/opt/genieacs/dist/bin/genieacs-cwmp:2:126385)\n at process.\_tickCallback (internal/process/next\_tick.js:68:7)”  
2020-05-25T19:35:51.616Z [ERROR] **Worker died** ; pid=79 exitCode=0  
2020-05-25T19:35:52.012Z [INFO] Worker listening; pid=2771 address=“0.0.0.0” port=7547

For me, this happens due to bad format messages when using the NBI interface through Postman for example. The problem is deterministic if you use a space in “name” parameter for example, as you can see below:

```
{
    " name": "setParameterValues",
    "parameterValues": [
        [
            "InternetGatewayDevice.LANDevice.1.WLANConfiguration.1.SSID",
            "Ferdinando",
            "xsd:string"
        ]
    ]
}

```

This is enough to get the “Worker Died” problem and this can cause other problems since this message is queued and never expires. All other messages that is queued after this one will not be processed and all the messages stays in the queue forever. Genieacs-cwmp process keeps dying and restarting due to this exception and never treats the other messages after this one.

Is there any fix for this? Is this a known problem?

Regards,

---

<div class="post-metadata">

**Author:** ![akcoder](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/akcoder/32/11_2.png) [@akcoder](https://forum.genieacs.com/u/akcoder)\
**Post date:** [July 22, 2020, 3:54pm UTC](https://forum.genieacs.com/t/getparametervalues-task-name-not-recognized/292/5 "2020-07-22T15:54:44Z")

</div>

> [@Ferdinando](#):
>
> ```auto
> {
> " name": "setParameterValues",
> "parameterValues": [
> [
> "InternetGatewayDevice.LANDevice.1.WLANConfiguration.1.SSID",
> "Ferdinando",
> "xsd:string"
> ]
> ]
> }
> 
> ```

The parameter in the JSON is “name”, not " name" (no space).

---

<div class="post-metadata">

**Author:** ![Ferdinando](https://avatars.discourse-cdn.com/v4/letter/f/dfb087/32.png) [@Ferdinando](https://forum.genieacs.com/u/Ferdinando)\
**Post date:** [July 22, 2020, 4:19pm UTC](https://forum.genieacs.com/t/getparametervalues-task-name-not-recognized/292/6 "2020-07-22T16:19:02Z")

</div>

Yes, I know, the question I wanted to get to is more about the resilience of the process. The idea is to show the consequences of the problem. If the user misspells and send message in bad format, the GenieACS process will generate exceptions and can enter in a loop process of start/stop process. That can compromise the handling of the next messages in the queue. (This is one case of how to generate this exception, off course it can be other ways of causing the same problem).

Is that clear?

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![topeqin](https://avatars.discourse-cdn.com/v4/letter/t/c37758/32.png) [@topeqin](https://forum.genieacs.com/u/topeqin)\
**Post date:** [September 5, 2020, 2:35pm UTC](https://forum.genieacs.com/t/getparametervalues-task-name-not-recognized/292/7 "2020-09-05T14:35:06Z")

</div>

> [@Ferdinando](#):
>
> `parameterValues`

I think new version you should change “name” to “parameterNames”

-QG
