Error adding API key

Added by cpbr 10 months ago

Hello, I am getting this error when adding an API key:

2012-07-30 12:26:05,938 [ERROR] django.request - Internal Server Error: /account/addapi/

Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/Django-1.4-py2.7.egg/django/core/handlers/base.py", line 111, in get_response
response = callback(request, *callback_args, **callback_kwargs)
File "/usr/local/lib/python2.7/dist-packages/Django-1.4-py2.7.egg/django/contrib/auth/decorators.py", line 20, in _wrapped_view
return view_func(request, *args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/Django-1.4-py2.7.egg/django/db/transaction.py", line 209, in inner
return func(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/ecm-2.0.5.1-py2.7.egg/ecm/views/auth/account.py", line 65, in add_api
if form.is_valid():
File "/usr/local/lib/python2.7/dist-packages/Django-1.4-py2.7.egg/django/forms/forms.py", line 124, in is_valid
return self.is_bound and not bool(self.errors)
File "/usr/local/lib/python2.7/dist-packages/Django-1.4-py2.7.egg/django/forms/forms.py", line 115, in _get_errors
self.full_clean()
File "/usr/local/lib/python2.7/dist-packages/Django-1.4-py2.7.egg/django/forms/forms.py", line 271, in full_clean
self._clean_form()
File "/usr/local/lib/python2.7/dist-packages/Django-1.4-py2.7.egg/django/forms/forms.py", line 299, in _clean_form
self.cleaned_data = self.clean()
File "/usr/local/lib/python2.7/dist-packages/ecm-2.0.5.1-py2.7.egg/ecm/views/auth/forms.py", line 235, in clean
self.characters = api.get_account_characters(UserAPIKey(keyID=keyID, vCode=vCode))
File "/usr/local/lib/python2.7/dist-packages/ecm-2.0.5.1-py2.7.egg/ecm/apps/eve/api.py", line 86, in get_account_characters
corp = Corp.objects.get(id=1)
File "/usr/local/lib/python2.7/dist-packages/Django-1.4-py2.7.egg/django/db/models/manager.py", line 131, in get
return self.get_query_set().get(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/Django-1.4-py2.7.egg/django/db/models/query.py", line 366, in get
% self.model._meta.object_name)
DoesNotExist: Corp matching query does not exist.

How to solve this?


Replies (2)

RE: Error adding API key - Added by cpbr 10 months ago

Btw, the corp does exist and the api key does work and belong to a director.

RE: Error adding API key - Added by diabeteman 10 months ago

hi,

you should enter a director api key and run all updates before adding user api keys.

read InstallationInstructions for more info

(1-2/2)