# 1.2beta provision "refresh" exception

**URL:** <https://forum.genieacs.com/t/1-2beta-provision-refresh-exception/353>\
**Category:** Uncategorized\
**Created:** [October 14, 2019, 10:57am UTC](https://forum.genieacs.com/t/1-2beta-provision-refresh-exception/353 "2019-10-14T10:57:43Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![chmutoff](https://avatars.discourse-cdn.com/v4/letter/c/74df32/32.png) [@chmutoff](https://forum.genieacs.com/u/chmutoff)\
**Post date:** [October 14, 2019, 10:57am UTC](https://forum.genieacs.com/t/1-2beta-provision-refresh-exception/353/1 "2019-10-14T10:57:44Z")

</div>

Hi.

When i´m trying to use the embedded “refresh” provision i´m getting the following error in genieacs-cwmp.log:

`[ERROR] Uncaught exception; pid=12334 exceptionName="TypeError" exceptionMessage="Cannot read property 'length' of undefined" exceptionStack="TypeError: Cannot read property 'length' of undefined\n at Function.parsePath (/opt/genieacs/bin/genieacs-cwmp:2:38190)\n at Function.parse (/opt/genieacs/bin/genieacs-cwmp:2:38947)\n at Object.refresh$1 [as refresh] (/opt/genieacs/bin/genieacs-cwmp:2:74484)\n at Promise.all.t.map (/opt/genieacs/bin/genieacs-cwmp:2:87765)\n at Array.map (<anonymous>)\n at runProvisions (/opt/genieacs/bin/genieacs-cwmp:2:87632)\n at rpcRequest (/opt/genieacs/bin/genieacs-cwmp:2:92525)\n at applyPresets (/opt/genieacs/bin/genieacs-cwmp:2:120551)\n at process._tickCallback (internal/process/next_tick.js:68:7)"`

Is there anything you can do about it?

---

<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:** [October 20, 2019, 6:19am UTC](https://forum.genieacs.com/t/1-2beta-provision-refresh-exception/353/2 "2019-10-20T06:19:49Z")

</div>

Can you try the latest master branch and let me know if you still see this exception?

---

<div class="post-metadata">

**Author:** ![chmutoff](https://avatars.discourse-cdn.com/v4/letter/c/74df32/32.png) [@chmutoff](https://forum.genieacs.com/u/chmutoff)\
**Post date:** [October 21, 2019, 9:15am UTC](https://forum.genieacs.com/t/1-2beta-provision-refresh-exception/353/3 "2019-10-21T09:15:32Z")

</div>

Hi, I’ve upgraded to the latest master version and the situation is the same:

```
2019-10-21T09:12:39.769Z [ERROR] Uncaught exception; pid=28190 exceptionName="TypeError" exceptionMessage="Cannot read property 'length' of undefined" exceptionStack="TypeError: Cannot read property 'length' of undefined\n at Function.parsePath (/opt/genieacs/bin/genieacs-cwmp:2:38190)\n at Function.parse (/opt/genieacs/bin/genieacs-cwmp:2:38947)\n at Object.refresh$1 [as refresh] (/opt/genieacs/bin/genieacs-cwmp:2:74484)\n at Promise.all.t.map (/opt/genieacs/bin/genieacs-cwmp:2:87765)\n at Array.map (<anonymous>)\n at runProvisions (/opt/genieacs/bin/genieacs-cwmp:2:87632)\n at rpcRequest (/opt/genieacs/bin/genieacs-cwmp:2:92525)\n at applyPresets (/opt/genieacs/bin/genieacs-cwmp:2:120551)\n at process._tickCallback (internal/process/next_tick.js:68:7)"
2019-10-21T09:12:39.837Z [ERROR] Worker died; pid=28190 exitCode=0
2019-10-21T09:12:40.258Z [INFO] Worker listening; pid=28694 address="127.0.0.1" port=7547
```

---

<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:** [October 25, 2019, 10:06pm UTC](https://forum.genieacs.com/t/1-2beta-provision-refresh-exception/353/4 "2019-10-25T22:06:44Z")

</div>

I think I know what the problem is. You’re not passing the parameter as argument. I’ll fix this such that it silently ignores it rather than crash.

---

<div class="post-metadata">

**Author:** ![chmutoff](https://avatars.discourse-cdn.com/v4/letter/c/74df32/32.png) [@chmutoff](https://forum.genieacs.com/u/chmutoff)\
**Post date:** [November 5, 2019, 4:20pm UTC](https://forum.genieacs.com/t/1-2beta-provision-refresh-exception/353/5 "2019-11-05T16:20:47Z")

</div>

Thank you. What can I pass as parameter there?

---

<div class="post-metadata">

**Author:** ![geniedaju](https://avatars.discourse-cdn.com/v4/letter/g/a4c791/32.png) [@geniedaju](https://forum.genieacs.com/u/geniedaju)\
**Post date:** [April 3, 2024, 4:44pm UTC](https://forum.genieacs.com/t/1-2beta-provision-refresh-exception/353/6 "2024-04-03T16:44:47Z")

</div>

_This comment is for anyone who may come here like myself._

This issue may arise in Genieacs v1.2.9 too (while summoning the client device from UI) if the “InternetGatewayDevice.ManagementServer.ConnectionRequestURL” is not being reported/sent from the router/simulator.

Please verify if it has a valid value before trying again.  
Hope it helps.
