Closed dilorc closed 10 years ago
Did you set the IP address of your HDHomerun correctly in the config? Is your HDHomerun one of the original Duals? That one is not supported. Is your firmware up to date? You'll need up to date firmware to get your channel listings back.
Yes, the IP is correct. It's the CableCard HDHomerun, the CC3 I believe. Firmware is 20140604.
curl works fine: curl http://192.168.1.202:8888/channels returns all the channels. It only happens when I use the Python library.
Very weird.
Are there debug logs I can look at?
It logs at logs/wallop.log
. But they're not showing much except that a 500 is happening :/
I'm seeing this too. This is very weird.
Ok, it looks like that urlopen
doesn't send a default accept header in it's request. If you add one it should be fine.
import urllib2
req = urllib2.Request('http://localhost:8888/channels')
req.add_header('Accept', 'application/json')
print urllib2.urlopen(req).read()
Perfect! Thanks for the help and the quick turnaround!
Chris
On Fri, Oct 17, 2014 at 6:08 PM, Jon Maddox notifications@github.com wrote:
Ok, it looks like that urlopen doesn't send a default accept header in it's request. If you add one it should be fine.
import urllib2 req = urllib2.Request('http://localhost:8888/channels')req.add_header('Accept', 'application/json')print urllib2.urlopen(req).read()
— Reply to this email directly or view it on GitHub https://github.com/maddox/wallop/issues/37#issuecomment-59582900.
Hi,
When I use urllib or urllib2 in python to get a list of channels the servers returns an 500 error. I can use curl with no issue. I can also use urllib2 to tune and get the status of a channel. It only fails when I try to pull the list. Are there debug logs I can look at? I need to use python because I'm writing an XBMC plugin to play Wallop channels.
Python 2.7.6 (default, Mar 22 2014, 22:59:56) [GCC 4.8.2] on linux2 Type "help", "copyright", "credits" or "license" for more information.