Bugs: Browse | Submit New | Admin

[#21176] upnp_discover: strip error on NilClass

Date:
2008-07-11 22:34
Priority:
3
Submitted By:
Leon Bogaert (leonb)
Assigned To:
Eric Hodel (drbrain)
Category:
UPnP
State:
Open
Summary:
upnp_discover: strip error on NilClass

Detailed description
When I run upnp_discover, I get this error:

leon@polly:~$ ruby1.8 /home/leon/.rubygems/bin/upnp_discover
/home/leon/.rubygems/gems/UPnP-1.0.0/lib/UPnP/control/device.rb:208:in `parse_device': undefined method `strip' for
nil:NilClass (NoMethodError)
	from /home/leon/.rubygems/gems/UPnP-1.0.0/lib/UPnP/control/device.rb:171:in `initialize'
	from /home/leon/.rubygems/gems/UPnP-1.0.0/bin/upnp_discover:25:in `new'
	from /home/leon/.rubygems/gems/UPnP-1.0.0/bin/upnp_discover:25
	from /home/leon/.rubygems/gems/UPnP-1.0.0/bin/upnp_discover:24:in `map'
	from /home/leon/.rubygems/gems/UPnP-1.0.0/bin/upnp_discover:24
	from /home/leon/.rubygems/bin/upnp_discover:19:in `load'
	from /home/leon/.rubygems/bin/upnp_discover:19

I don't think I have an upnp enabled device here, so that may be causing the problem?

I'd like to use upnp for media-sharing windows machines. Would it be possible (with some coding of course)?

Thanks!

Add A Comment: Notepad

Please login


Followup

Message
Date: 2008-07-23 07:08
Sender: Eric Hodel

If you got that far, you do have a UPnP device present.

I'm not sure what's going on there, though.  You'll need go into
that file and print out what it is processing.  On line 166 add:

puts open(device).read

and attach that output to the bug.  For a future version I'll
try to make it spit out what it choked on.
Date: 2008-07-11 22:52
Sender: Leon Bogaert

I've installed mediatomb and used rhythmbox to check if it's
working. It is working, but upnp_discover fails with the
same error.

Attached Files:

Name Description Download
No Files Currently Attached

Changes:

Field Old Value Date By
resolution_idNone2008-07-23 07:08drbrain
artifact_group_idNone2008-07-23 07:08drbrain