Any idea why I always get an "Internal Server Error" for the playlist, when I try to access webfoo from another computer on the LAN?
No problem at all when using localhost.. edit: Actually does it randomly on refresh on localhost, too.
The error is "undefined method `[]' for nil:NilClass".
More details:
WebFoo 0.1
HTTP remote interface for foobar2000
Copyright © 2007 by Marcel Schaeben
[2007-07-13 15:27:24] INFO WEBrick 1.3.1
[2007-07-13 15:27:24] INFO ruby 1.8.5 (2006-08-25) [i386-mswin32]
[2007-07-13 15:27:24] INFO WEBrick::HTTPServer#start: pid=3576 port=2000
HTTP server started on port 2000.
Connected to foobar.
localhost - - [13/Jul/2007:15:27:32 FLE Standard Time] "GET /control HTTP/1.1" 200 433
http://127.0.0.1:2000/ -> /control
localhost - - [13/Jul/2007:15:27:32 FLE Standard Time] "GET /playlist HTTP/1.1" 200 69062
http://127.0.0.1:2000/ -> /playlist
localhost - - [13/Jul/2007:15:27:38 FLE Standard Time] "GET /control?cmd=next HTTP/1.1" 200 428
http://127.0.0.1:2000/control -> /control?cmd=next
10.0.0.3 - - [13/Jul/2007:15:28:37 FLE Standard Time] "GET / HTTP/1.1" 200 178 - -> /
10.0.0.3 - - [13/Jul/2007:15:30:06 FLE Standard Time] "GET /favicon.ico HTTP/1.1" 200 178
http://10.0.0.2:2000/ -> /favicon.ico
[2007-07-13 15:30:06] ERROR NoMethodError: undefined method `[]' for nil:NilClass
C:\DOCUME~1\user\LOCALS~1\Temp\eee.webfoo.exe.8\app\webfoo.rb:92:in `getPlaylist'
C:\DOCUME~1\user\LOCALS~1\Temp\eee.webfoo.exe.8\app\webfoo.rb:176
C:\DOCUME~1\user\LOCALS~1\Temp\eee.webfoo.exe.8\app\webfoo.rb:172:in `gsub!'
C:\DOCUME~1\user\LOCALS~1\Temp\eee.webfoo.exe.8\app\webfoo.rb:172
C:/DOCUME~1/user/LOCALS~1/Temp/eee.webfoo.exe.8/lib/webrick/httpservlet/prochandler.rb:26:in `call'
C:/DOCUME~1/user/LOCALS~1/Temp/eee.webfoo.exe.8/lib/webrick/httpservlet/prochandler.rb:26:in `do_GET'
C:/DOCUME~1/user/LOCALS~1/Temp/eee.webfoo.exe.8/lib/webrick/httpservlet/abstract.rb:35:in `__send__'
C:/DOCUME~1/user/LOCALS~1/Temp/eee.webfoo.exe.8/lib/webrick/httpservlet/abstract.rb:35:in `service'
C:/DOCUME~1/user/LOCALS~1/Temp/eee.webfoo.exe.8/lib/webrick/httpserver.rb:104:in `service'
C:/DOCUME~1/user/LOCALS~1/Temp/eee.webfoo.exe.8/lib/webrick/httpserver.rb:65:in `run'
C:/DOCUME~1/user/LOCALS~1/Temp/eee.webfoo.exe.8/lib/webrick/server.rb:173:in `start_thread'
C:/DOCUME~1/user/LOCALS~1/Temp/eee.webfoo.exe.8/lib/webrick/server.rb:162:in `start'
C:/DOCUME~1/user/LOCALS~1/Temp/eee.webfoo.exe.8/lib/webrick/server.rb:162:in `start_thread'
C:/DOCUME~1/user/LOCALS~1/Temp/eee.webfoo.exe.8/lib/webrick/server.rb:95:in `start'
C:/DOCUME~1/user/LOCALS~1/Temp/eee.webfoo.exe.8/lib/webrick/server.rb:92:in `each'
C:/DOCUME~1/user/LOCALS~1/Temp/eee.webfoo.exe.8/lib/webrick/server.rb:92:in `start'
C:/DOCUME~1/user/LOCALS~1/Temp/eee.webfoo.exe.8/lib/webrick/server.rb:23:in `start'
C:/DOCUME~1/user/LOCALS~1/Temp/eee.webfoo.exe.8/lib/webrick/server.rb:82:in `start'
C:\DOCUME~1\user\LOCALS~1\Temp\eee.webfoo.exe.8\app\webfoo.rb:189
C:\DOCUME~1\user\LOCALS~1\Temp\eee.webfoo.exe.8\bootstrap.rb:50:in `load'
C:\DOCUME~1\user\LOCALS~1\Temp\eee.webfoo.exe.8\bootstrap.rb:50
10.0.0.3 - - [13/Jul/2007:15:29:13 FLE Standard Time] "GET /control HTTP/1.1" 200 456
http://10.0.0.2:2000/ -> /control
10.0.0.3 - - [13/Jul/2007:15:29:48 FLE Standard Time] "GET /playlist HTTP/1.1" 500 317
http://10.0.0.2:2000/ -> /playlist