jeffreykog / node-artnet-protocol

ArtNet library for Node.js
MIT License
9 stars 3 forks source link

I am getting an error when doing ArtPollReply #1

Open kellertobias opened 2 years ago

kellertobias commented 2 years ago

See: https://github.com/kellertobias/artnet-to-obs/issues/5

130359534-4c9cf5d0-95b1-43d2-9629-b6b8a2146fb0

This might be i one of the following:

        const ipParts = this.ipAddress.split('.');
        const bindIpParts = this.bindIp.split('.');

in https://github.com/jeffreykog/node-artnet-protocol/blob/70129088438ef6f7e88cbdcca0e000240568e6f8/lib/protocol.ts

kellertobias commented 2 years ago

I found out how to reproduce the error:

it's the line this.ipAddress.split(...) where this.ipAddress is undefined.

TypeError: Cannot read property 'split' of undefined
    at ArtPollReply.encode (C:\Users\olive\Downloads\artnet-to-obs-2021-08-22-08-55-01\artnet-to-obs-2021-08-22-08-55-01\.webpack\main\index.js:691:44)