[RELEASE] NetfliXBMC - Unofficial Netflix Add-on (Win/OSX/Linux)
@corona with latest plugin code I got the following log when trying to get past the Profile Selection window. I had just started Kodi up.

17:57:43 T:140658147841792 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <class 'requests.exceptions.ConnectionError'>
Error Contents: HTTPSConnectionPool(host='www.netflix.com', port=443): Max retries exceeded with url: /ProfilesGate?nextpage=http%3A%2F%2Fwww.netflix.com%2FDefault (Caused by <class 'httplib.BadStatusLine'>: '')
Traceback (most recent call last):
File "/home/jason/.kodi/addons/plugin.video.netflixbmc/default.py", line 1061, in <module>
index()
File "/home/jason/.kodi/addons/plugin.video.netflixbmc/default.py", line 153, in index
if login():
File "/home/jason/.kodi/addons/plugin.video.netflixbmc/default.py", line 702, in login
chooseProfile()
File "/home/jason/.kodi/addons/plugin.video.netflixbmc/default.py", line 710, in chooseProfile
content = load("https://www.netflix.com/ProfilesGate?nextpage=http%3A%2F%2Fwww.netflix.com%2FDefault")
File "/home/jason/.kodi/addons/plugin.video.netflixbmc/default.py", line 96, in load
r = session.get(url).text
File "/usr/lib/python2.7/dist-packages/requests/sessions.py", line 467, in get
return self.request('GET', url, **kwargs)
File "/usr/lib/python2.7/dist-packages/requests/sessions.py", line 455, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python2.7/dist-packages/requests/sessions.py", line 558, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/python2.7/dist-packages/requests/adapters.py", line 378, in send
raise ConnectionError(e)
ConnectionError: HTTPSConnectionPool(host='www.netflix.com', port=443): Max retries exceeded with url: /ProfilesGate?nextpage=http%3A%2F%2Fwww.netflix.com%2FDefault (Caused by <class 'httplib.BadStatusLine'>: '')
-->End of Python script error report<--
17:57:44 T:140659434350336 ERROR: Previous line repeats 1 times.
17:57:44 T:140659434350336 NOTICE: PulseAudio: Opened device Default in pcm mode with Buffersize 150 ms
17:57:45 T:140658113750784 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <class 'requests.exceptions.ConnectionError'>
Error Contents: HTTPSConnectionPool(host='www.netflix.com', port=443): Max retries exceeded with url: /ProfilesGate?nextpage=http%3A%2F%2Fwww.netflix.com%2FDefault (Caused by <class 'httplib.BadStatusLine'>: '')
Traceback (most recent call last):
File "/home/jason/.kodi/addons/plugin.video.netflixbmc/default.py", line 1061, in <module>
index()
File "/home/jason/.kodi/addons/plugin.video.netflixbmc/default.py", line 153, in index
if login():
File "/home/jason/.kodi/addons/plugin.video.netflixbmc/default.py", line 702, in login
chooseProfile()
File "/home/jason/.kodi/addons/plugin.video.netflixbmc/default.py", line 710, in chooseProfile
content = load("https://www.netflix.com/ProfilesGate?nextpage=http%3A%2F%2Fwww.netflix.com%2FDefault")
File "/home/jason/.kodi/addons/plugin.video.netflixbmc/default.py", line 96, in load
r = session.get(url).text
File "/usr/lib/python2.7/dist-packages/requests/sessions.py", line 467, in get
return self.request('GET', url, **kwargs)
File "/usr/lib/python2.7/dist-packages/requests/sessions.py", line 455, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python2.7/dist-packages/requests/sessions.py", line 558, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/python2.7/dist-packages/requests/adapters.py", line 378, in send
raise ConnectionError(e)
ConnectionError: HTTPSConnectionPool(host='www.netflix.com', port=443): Max retries exceeded with url: /ProfilesGate?nextpage=http%3A%2F%2Fwww.netflix.com%2FDefault (Caused by <class 'httplib.BadStatusLine'>: '')
-->End of Python script error report<--
17:57:45 T:140659844839360 ERROR: GetDirectory - Error getting plugin://plugin.video.netflixbmc/
17:57:45 T:140659844839360 ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.netflixbmc/) failed
17:57:45 T:140658113750784 NOTICE: Thread BackgroundLoader start, auto delete: false
17:57:45 T:140658135516928 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <class 'requests.exceptions.ConnectionError'>
Error Contents: HTTPSConnectionPool(host='www.netflix.com', port=443): Max retries exceeded with url: /ProfilesGate?nextpage=http%3A%2F%2Fwww.netflix.com%2FDefault (Caused by <class 'httplib.BadStatusLine'>: '')
Traceback (most recent call last):
File "/home/jason/.kodi/addons/plugin.video.netflixbmc/default.py", line 1061, in <module>
index()
File "/home/jason/.kodi/addons/plugin.video.netflixbmc/default.py", line 153, in index
if login():
File "/home/jason/.kodi/addons/plugin.video.netflixbmc/default.py", line 702, in login
chooseProfile()
File "/home/jason/.kodi/addons/plugin.video.netflixbmc/default.py", line 710, in chooseProfile
content = load("https://www.netflix.com/ProfilesGate?nextpage=http%3A%2F%2Fwww.netflix.com%2FDefault")
File "/home/jason/.kodi/addons/plugin.video.netflixbmc/default.py", line 96, in load
r = session.get(url).text
File "/usr/lib/python2.7/dist-packages/requests/sessions.py", line 467, in get
return self.request('GET', url, **kwargs)
File "/usr/lib/python2.7/dist-packages/requests/sessions.py", line 455, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python2.7/dist-packages/requests/sessions.py", line 558, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/python2.7/dist-packages/requests/adapters.py", line 378, in send
raise ConnectionError(e)
ConnectionError: HTTPSConnectionPool(host='www.netflix.com', port=443): Max retries exceeded with url: /ProfilesGate?nextpage=http%3A%2F%2Fwww.netflix.com%2FDefault (Caused by <class 'httplib.BadStatusLine'>: '')
-->End of Python script error report<--
17:57:45 T:140659844839360 ERROR: GetDirectory - Error getting plugin://plugin.video.netflixbmc/
17:57:45 T:140659844839360 ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.netflixbmc/) failed
17:57:45 T:140658135516928 NOTICE: Thread BackgroundLoader start, auto delete: false
17:57:45 T:140659844839360 ERROR: GetDirectory - Error getting plugin://plugin.video.netflixbmc/
17:57:45 T:140659844839360 ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.netflixbmc/) failed
17:57:45 T:140658135516928 NOTICE: Thread BackgroundLoader start, auto delete: false
17:57:45 T:140659844839360 ERROR: GetDirectory - Error getting plugin://plugin.video.netflixbmc/
17:57:45 T:140659844839360 ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.netflixbmc/) failed
17:57:45 T:140658135516928 NOTICE: Thread BackgroundLoader start, auto delete: false

Not sure if its something you can deal with or not?

(2014-12-05, 06:08)corona Wrote: That's the right info to try to debug from.
The second issue is a unicode character issue, there are a few of them lurking in the code.

The first may be similar although it looks like something has gone wrong with the cache. It may be resolved by going to the plugin settings page and under advanced ( I think ) there's a menu item for 'clear cache' . I suggest trying it and see if it helps.

Actually I think the first is a Netflix bug. I added a debug statement to get the url that was tried to load a video from my viewing activity and this is what happened:

http://api-global.netflix.com/desktop/od...country=US

java.lang.NullPointerException: Cannot invoke method asOriginal() on null object
at org.codehaus.groovy.runtime.NullObject.invokeMethod(NullObject.java:77)
at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:45)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45)
at org.codehaus.groovy.runtime.callsite.NullCallSite.call(NullCallSite.java:32)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45)
at com.netflix.api.service.video.APIVideo$asOriginal$0.call(Unknown Source)
at Script5732876670475581240$_run_closure2.doCall(Script5732876670475581240.groovy:847)
at sun.reflect.GeneratedMethodAccessor18314.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.jav

<snip>

I think the parameter should be seriesId= rather than video=

https://github.com/andrewleech/plugin.vi...bmc/pull/2
Reply


Messages In This Thread
Search empty? - by cgrey - 2014-01-11, 06:13
Not working on windows 7 - by dandiodati - 2014-02-26, 21:55
Problems with this addon - by builderjer - 2014-11-30, 19:55
RE: [RELEASE] NetfliXBMC - Unofficial Netflix Add-on (Win/OSX/Linux) - by JasonPell - 2014-12-05, 09:00
Logout Mark Read Team Forum Stats Members Help
[RELEASE] NetfliXBMC - Unofficial Netflix Add-on (Win/OSX/Linux)7