(2012-06-26, 03:38)xbmcsnapper Wrote: Oops, don't know why I thought you were using OSX. Anyway, the next thing I would suggest is to clear your browser cache completely, and then launch XBMC and try the authorization process again. I'm not sure if this is the cause of the . . .
Code:
08:05:25 T:4552 ERROR: Error Type: <class 'socket.error'>
08:05:25 T:4552 ERROR: Error Contents: [Errno 10054] An existing connection was forcibly closed by the remote host
. . . in your log, but I think the browser cache may prevent the authorization prompts from coming up. Worth a try anyway.
OK, I've cleared the cache in my default browser and IE as well. Still same result. I changed the default browser to IE and same result. I was thinking if I could manually enter the key and secret, then the log would would give a clearer indication of where the problem lies. The script get to line 45 in iqueue.py because I see "..user configured.." , then the very next line is:
ERROR: Error Type: <class 'socket.error'>
The the traceback says :
FFile "C:\Users\XBMCUser\AppData\Roaming\XBMC\addons\spudsdude-XBMC-Flicks-4aa5bcb\default.py", line 26, in <module>
import resources.lib.menu as menu
File "C:\Users\XBMCUser\AppData\Roaming\XBMC\addons\spudsdude-XBMC-Flicks-4aa5bcb\resources\lib\menu.py", line 474, in <module>
getInstantQueue()
File "C:\Users\XBMCUser\AppData\Roaming\XBMC\addons\spudsdude-XBMC-Flicks-4aa5bcb\resources\lib\iqueue.py", line 1378, in getInstantQueue
initApp()
File "C:\Users\XBMCUser\AppData\Roaming\XBMC\addons\spudsdude-XBMC-Flicks-4aa5bcb\resources\lib\iqueue.py", line 1373, in initApp
user = getAuth(netflixClient,VERBOSE_USER_LOG)
File "C:\Users\XBMCUser\AppData\Roaming\XBMC\addons\spudsdude-XBMC-Flicks-4aa5bcb\resources\lib\iqueue.py", line 61, in getAuth
(tok, url) = netflix.user.getRequestToken()
File "C:\Users\XBMCUser\AppData\Roaming\XBMC\addons\spudsdude-XBMC-Flicks-4aa5bcb\resources\lib\Netflix.py", line 45, in getRequestToken
response = client.connection.getresponse()
File "G:\Program Files (x86)\XBMC\system\python\Lib\httplib.py", line 990, in getresponse
response.begin()
File "G:\Program Files (x86)\XBMC\system\python\Lib\httplib.py", line 391, in begin
version, status, reason = self._read_status()
File "G:\Program Files (x86)\XBMC\system\python\Lib\httplib.py", line 349, in _read_status
line = self.fp.readline()
File "G:\Program Files (x86)\XBMC\system\python\Lib\socket.py", line 427, in readline
data = recv(1)
I can follow the traceback, but don't understand the code. Bottom line is I geuss that getAuth fails in the script before the browser pops up.
Found these URLs in Netflix.py :
REQUEST_TOKEN_URL = 'http://api.netflix.com/oauth/request_token'
ACCESS_TOKEN_URL = 'http://api.netflix.com/oauth/access_token'
AUTHORIZATION_URL = 'https://api-user.netflix.com/oauth/login'
But if I copy these into my broser, they fail. For instance, Chrome shows me this for
https://api-user.netflix.com/oauth/login
<status>
<status_code>400</status_code>
<message>oauth_consumer_key is missing</message>
</status>
But if I simply go to
http://netflix.com, I'm logged in and can see my queue.