nicholasrobinson / XfinityControlWeb

Python library and Example Web Application for the Comcast xfinity set top box API
MIT License
13 stars 2 forks source link

Unexpected profile API response. #4

Open spencergriffin opened 7 years ago

spencergriffin commented 7 years ago

I am getting an error in get_profile. Here is the stack trace:

File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 162, in _run_module_as_main "main", fname, loader, pkg_name) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 72, in _run_code exec code in run_globals File "XfinityControlWeb-master/main.py", line 16, in xfinity_control = XfinityControl(username, password) File "./xfinity_control_web/xfinity_control.py", line 30, in init self._profile = self._get_profile() File "./xfinity_control_web/xfinity_control.py", line 74, in _get_profile raise XfinityApiException("Unexpected profile API response.") xfinity_control_web.xfinity_control.XfinityApiException: Unexpected profile API response.

The response code I am getting from the server is 504.

nicholasrobinson commented 7 years ago

I am seeing this too...

It seems as though Comcast have discontinued the web remote control app, i.e. I cannot find a way through the xfinity website to control my DVR (it seems they let you watch content on your PC directly now!). This project was leveraging APIs exposed for this application - so now the APIs are gone this no longer works.

If you are aware of a way to control your DVR through the xfinity website please let me know, otherwise I will need to investigate the remote control APIs that the iOS and Android which will take some time.

SethCalkins commented 7 years ago

@nicholasrobinson ok I've found issue.URL Endpoint is incorrect.. See this Code

https://github.com/fbierhaus/hackathon/blob/e337d63025523c0d44ecf9dc296ee9d62af4cdc7/common/src/com/vzw/hackathon/ComcastOAuthApi.java

String urlStr = "https://xip.comcast.net/xip/proxy/rtune/device/" + DEVICE_KEY + "/tune/tv/vcn/703";

psayre23 commented 7 years ago

I don't know if that URL will work. Looking at the code, it's almost 4 years old. Also, there are several leaked API keys in there. If there was something working there back then, I'm betting it's shutdown now.