diversario / node-ssdp

node.js SSDP client/server.
MIT License
274 stars 118 forks source link

ssdp server sending [object Object] string on LOCATION instead the right value #92

Open ejbp opened 6 years ago

ejbp commented 6 years ago

When you run the example server (and then client) server replies with [object Object] on LOCATION field instead the right location of device-desc.xml file:

Example:

advertise-alive { HOST: '239.255.255.250:1900',
  NT: 'uuid:f40c2981-7329-40b7-8b04-27f187aecfb5',
  NTS: 'ssdp:alive',
  USN: 'uuid:f40c2981-7329-40b7-8b04-27f187aecfb5',
  LOCATION: '[object Object]',
  'CACHE-CONTROL': 'max-age=1800',
  SERVER: 'node.js/0.10.25 UPnP/1.1 node-ssdp/2.6.3' }

I've tested in a macosx with nodejs version v0.10.25. I need to use this nodejs lower version because I will run my service in a webos system.

Thanks in advance.

diversario commented 6 years ago

That's odd. Did you add any configuration of your own to examples?