-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
500 Internal Server Error when getting channel list #37
Comments
Did you set the IP address of your HDHomerun correctly in the config? |
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.
It logs at I'm seeing this too. This is very weird. |
Ok, it looks like that 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
|
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.
The text was updated successfully, but these errors were encountered: