asciidisco / asciidisco/plugin.video.netflix

[Widgets] Connection refused when restarting kodi with home widget activated

Open
#196 4 comments 0 reactions 2 assignees Claimed by @caphm View on GitHub
bug
Dominant language
Python
Stars
1.2k
Forks
213
PR merge metrics
No merged PRs in 30d

Description

*I'm submitting a ...*
- [x] bug report
- [ ] feature request
- [ ] support request

## General infomration
When you add an entry to home widgets, occasionally when restarting kodi an error is shown. Delving into this deeper it looks like a connection refused error occurs because the netflix addon is not ready?

### Prerequisites
Add a widget link with skin shortcuts (such as continue watching) and restart kodi
* [x] Are you running the latest version?

### Description

**Expected behavior:** [What you expected to happen]

The connection should not be refused

**Actual behavior:** [What actually happened]

The connection is refused (but not every time which indicates a timing issue)

## Context (Environment)

### Installation

* [ ] I installed the plugin via zip from the Releases page
* [x] I´m using the Netflix Repo
* [ ] I´m using a different source (Please tell which)

### Operating System

* [ ] Linux (x86/x64)
* [ ] OSX (x86/x64)
* [ ] Windows (x86/x64)
* [ ] Linux (ARM)
* [x] Android

## Debug log

```
14:07:41.868 T:138596942928 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type:
Error Contents:
Traceback (most recent call last):
File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/plugin.video.netflix/addon.py", line 42, in
NAVIGATION.router(paramstring=REQUEST_PARAMS)
File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/plugin.video.netflix/resources/lib/utils.py", line 45, in wrapped
result = func(*args, **kwargs)
File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/plugin.video.netflix/resources/lib/Navigation.py", line 85, in router
options = self.before_routing_action(params=params)
File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/plugin.video.netflix/resources/lib/utils.py", line 45, in wrapped
result = func(*args, **kwargs)
File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/plugin.video.netflix/resources/lib/Navigation.py", line 725, in before_routing_action
'method': 'is_logged_in'}))
File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/plugin.video.netflix/resources/lib/Navigation.py", line 900, in call_netflix_service
data = urllib2.urlopen(full_url).read(opener)
File "/home/jenkins/workspace/Android-ARM64/tools/depends/xbmc-depends/aarch64-linux-android-21-debug/lib/python2.7/urllib2.py", line 154, in urlopen
File "/home/jenkins/workspace/Android-ARM64/tools/depends/xbmc-depends/aarch64-linux-android-21-debug/lib/python2.7/urllib2.py", line 429, in open
File "/home/jenkins/workspace/Android-ARM64/tools/depends/xbmc-depends/aarch64-linux-android-21-debug/lib/python2.7/urllib2.py", line 447, in _open
File "/home/jenkins/workspace/Android-ARM64/tools/depends/xbmc-depends/aarch64-linux-android-21-debug/lib/python2.7/urllib2.py", line 407, in _call_chain
File "/home/jenkins/workspace/Android-ARM64/tools/depends/xbmc-depends/aarch64-linux-android-21-debug/lib/python2.7/urllib2.py", line 1228, in http_open
File "/home/jenkins/workspace/Android-ARM64/tools/depends/xbmc-depends/aarch64-linux-android-21-debug/lib/python2.7/urllib2.py", line 1198, in do_open
URLError:
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.