Skip to content
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

IndexError('list index out of range',) #1403

Open
a-gerhard opened this issue Aug 11, 2016 · 0 comments
Open

IndexError('list index out of range',) #1403

a-gerhard opened this issue Aug 11, 2016 · 0 comments

Comments

@a-gerhard
Copy link
Contributor

a-gerhard commented Aug 11, 2016

Happened on backend_core

Description:

{'code': None, 'trace': [['/usr/share/tomato-hostmanager/tomato/lib/rpc/sslrpc.py', 384, 'handleRequest', 'res = method(*request.args, **request.kwargs)'], ['/usr/share/tomato-hostmanager/tomato/api/elements.py', 66, 'element_create', 'el = elements.create(type, parentEl, attrs)'], ['/usr/share/tomato-hostmanager/tomato/elements/__init__.py', 500, 'create', 'el.init(parent, attrs)'], ['/usr/share/tomato-hostmanager/tomato/elements/external_network.py', 83, 'init', 'elements.Element.init(self, *args, **kwargs) #no id and no attrs before this line'], ['/usr/share/tomato-hostmanager/tomato/elements/__init__.py', 81, 'init', 'self.modify(attrs)'], ['/usr/share/tomato-hostmanager/tomato/elements/__init__.py', 186, 'modify', 'getattr(self, "modify_%s" % key)(value)'], ['/usr/share/tomato-hostmanager/tomato/elements/external_network.py', 91, 'modify_network', 'self.network = resources.network.get(kind)'], ['/usr/share/tomato-hostmanager/tomato/resources/network.py', 82, 'get', 'return Network.objects.filter((models.Q(kind=kind)|models.Q(kind__startswith=kind+"/"))&models.Q(owner=currentUser())).order_by("-preference")[0]'], ['/usr/lib/python2.7/dist-packages/django/db/models/query.py', 207, '__getitem__', 'return list(qs)[0]']], 'data': {}, 'module': 'hostmanager', 'httpcode': 500, 'message': "IndexError('list index out of range',)", 'onscreenmessage': "IndexError('list index out of range',)", 'type': 'internal'}

Trace:

/usr/share/tomato-hostmanager/tomato/lib/rpc/sslrpc.py, line 384, in handleRequest
 res = method(*request.args, **request.kwargs)

/usr/share/tomato-hostmanager/tomato/api/elements.py, line 66, in element_create
 el = elements.create(type, parentEl, attrs)

/usr/share/tomato-hostmanager/tomato/elements/__init__.py, line 500, in create
 el.init(parent, attrs)

/usr/share/tomato-hostmanager/tomato/elements/external_network.py, line 83, in init
 elements.Element.init(self, *args, **kwargs) #no id and no attrs before this line

/usr/share/tomato-hostmanager/tomato/elements/__init__.py, line 81, in init
 self.modify(attrs)

/usr/share/tomato-hostmanager/tomato/elements/__init__.py, line 186, in modify
 getattr(self, "modify_%s" % key)(value)

/usr/share/tomato-hostmanager/tomato/elements/external_network.py, line 91, in modify_network
 self.network = resources.network.get(kind)

/usr/share/tomato-hostmanager/tomato/resources/network.py, line 82, in get
 return Network.objects.filter((models.Q(kind=kind)|models.Q(kind__startswith=kind+"/"))&models.Q(owner=currentUser())).order_by("-preference")[0]

/usr/lib/python2.7/dist-packages/django/db/models/query.py, line 207, in __getitem__
 return list(qs)[0]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant