# Cannot read property 'value' of undefined

**URL:** <https://forum.genieacs.com/t/cannot-read-property-value-of-undefined/362>\
**Category:** Uncategorized\
**Created:** [October 16, 2019, 10:58am UTC](https://forum.genieacs.com/t/cannot-read-property-value-of-undefined/362 "2019-10-16T10:58:43Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vladkansk](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/vladkansk/32/36_2.png) [@Vladkansk](https://forum.genieacs.com/u/Vladkansk)\
**Post date:** [October 16, 2019, 10:58am UTC](https://forum.genieacs.com/t/cannot-read-property-value-of-undefined/362/1 "2019-10-16T10:58:43Z")

</div>

Hello, I’m trying to use acs for one not popular vendor.  
It sends next parameters:

```
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:cwmp="urn:dslforum-org:cwmp-1-0">
  <SOAP-ENV:Header>
    <cwmp:ID SOAP-ENV:mustUnderstand="1">rg_wac_tr069_stack_c226a</cwmp:ID>
  </SOAP-ENV:Header>
  <SOAP-ENV:Body>
    <cwmp:Inform>
      <DeviceId>
        <Manufacturer>ELTEX</Manufacturer>
        <OUI>A8F94B</OUI>
        <ProductClass>RG-35-WZ</ProductClass>
        <SerialNumber>VI57003509</SerialNumber>
      </DeviceId>
      <Event SOAP-ENC:arrayType="cwmp:EventStruct[2]">
        <EventStruct>
          <EventCode>1 BOOT</EventCode>
          <CommandKey/>
        </EventStruct>
        <EventStruct>
          <EventCode>0 BOOTSTRAP</EventCode>
          <CommandKey/>
        </EventStruct>
      </Event>
      <MaxEnvelopes>1</MaxEnvelopes>
      <CurrentTime>2019-10-09T12:07:46Z</CurrentTime>
      <RetryCount>3</RetryCount>
      <ParameterList SOAP-ENC:arrayType="cwmp:ParameterValueStruct[8]">
        <ParameterValueStruct>
          <Name>InternetGatewayDevice.DeviceSummary</Name>
          <Value>InternetGatewayDevice:1.0[](Baseline:1, EthernetLAN:1, WiFiLAN:1, EthernetWAN:1, IPPing:1)</Value>
        </ParameterValueStruct>
        <ParameterValueStruct>
          <Name>InternetGatewayDevice.DeviceInfo.SpecVersion</Name>
          <Value>1.0</Value>
        </ParameterValueStruct>
        <ParameterValueStruct>
          <Name>InternetGatewayDevice.DeviceInfo.HardwareVersion</Name>
          <Value>1v7</Value>
        </ParameterValueStruct>
        <ParameterValueStruct>
          <Name>InternetGatewayDevice.DeviceInfo.SoftwareVersion</Name>
          <Value>2.0.1-b14</Value>
        </ParameterValueStruct>
        <ParameterValueStruct>
          <Name>InternetGatewayDevice.DeviceInfo.ProvisioningCode</Name>
          <Value/>
        </ParameterValueStruct>
        <ParameterValueStruct>
          <Name>InternetGatewayDevice.ManagementServer.ConnectionRequestURL</Name>
          <Value>http://81.1.228.133:7474/</Value>
        </ParameterValueStruct>
        <ParameterValueStruct>
          <Name>InternetGatewayDevice.ManagementServer.ParameterKey</Name>
          <Value/>
        </ParameterValueStruct>
        <ParameterValueStruct>
          <Name>InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANIPConnection.1.ExternalIPAddress</Name>
          <Value>{HiddenIP}</Value>
        </ParameterValueStruct>
      </ParameterList>
    </cwmp:Inform>
  </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

```

but ACS says  
2019-10-16T07:30:26.551Z [ERROR] {HiddenIP}: XML parse error; parseError=“Cannot read property ‘value’ of undefined”

could you please help me to define on which value error appears?

I use version 1.2.0-beta.0+20190731093016

---

<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:24am UTC](https://forum.genieacs.com/t/cannot-read-property-value-of-undefined/362/2 "2019-10-20T06:24:18Z")

</div>

The element is missing a ‘type’ attribute.

---

<div class="post-metadata">

**Author:** ![maaathieu-x](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/maaathieu-x/32/192_2.png) [@maaathieu-x](https://forum.genieacs.com/u/maaathieu-x)\
**Post date:** [February 3, 2020, 3:13pm UTC](https://forum.genieacs.com/t/cannot-read-property-value-of-undefined/362/3 "2020-02-03T15:13:04Z")

</div>

Hi,

I have the same error here. Unfortunately, I can not change the XML that is sent by the device.  
I used to use this patch:

> <https://github.com/Gudulin-Alexey/genieacs/commit/33a34d8d2834a02278fcd663d410f5a1cf5cc58f>

but it does not work anymore with the beta version.

Any change someone has an equivalent for the beta version ?

Thanks,

---

<div class="post-metadata">

**Author:** ![julito27670](https://avatars.discourse-cdn.com/v4/letter/j/0ea827/32.png) [@julito27670](https://forum.genieacs.com/u/julito27670)\
**Post date:** [February 6, 2020, 3:07pm UTC](https://forum.genieacs.com/t/cannot-read-property-value-of-undefined/362/4 "2020-02-06T15:07:57Z")

</div>

Hi,

Try this patch on lib/soap.ts :

```auto
133c133
< .value.trim()
---
> //.value.trim()
154c154,161
< const valueType = getValueType(valueElement.attrs);
---
> let valueType = getValueType(valueElement.attrs);
>
> if(valueType) {
> valueType = valueType.value.trim();
> } else {
> valueType = 'xsd:string';
> }
>

```

---

<div class="post-metadata">

**Author:** ![maaathieu-x](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/maaathieu-x/32/192_2.png) [@maaathieu-x](https://forum.genieacs.com/u/maaathieu-x)\
**Post date:** [February 17, 2020, 4:22pm UTC](https://forum.genieacs.com/t/cannot-read-property-value-of-undefined/362/5 "2020-02-17T16:22:52Z")

</div>

Hi,

Thanks, it better: I can now see the parameters, but most of them are blank.  
Is there a way to see what is sent by the device ? (I can not use tcpdump, as it’s over https)

---

<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:** [February 18, 2020, 3:31am UTC](https://forum.genieacs.com/t/cannot-read-property-value-of-undefined/362/6 "2020-02-18T03:31:20Z")

</div>

> [@maaathieu-x](#):
>
> Is there a way to see what is sent by the device ?

Set the config `cwmp.debug` (from admin → config) to `true`. And make sure to `genieacs-cwmp` is started with the environment variable `GENIEACS_DEBUG_FILE` set to the path of the debug log file.
