Solar-Helix-Independent-Transport / allianceauth-corp-tools

Corp Level Toolbox for directors and CEO's *WIP*
MIT License
4 stars 13 forks source link

Error when trying to see corp info #23

Closed frank1210 closed 2 years ago

frank1210 commented 3 years ago

After loading the SSO token and waiting for the information to be loaded on corp-tools. i try to get details by selecting the corp and i get the following error:

Environment:

Request Method: GET
Request URL: http://auth.DOMAIN.com/audit/char/1/overview/

Django Version: 3.2.8
Python Version: 3.7.7
Installed Applications:
['allianceauth',
 'django.contrib.admin',
 'django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.messages',
 'django.contrib.staticfiles',
 'django.contrib.humanize',
 'django_celery_beat',
 'bootstrapform',
 'sortedm2m',
 'esi',
 'allianceauth.authentication',
 'allianceauth.services',
 'allianceauth.eveonline',
 'allianceauth.groupmanagement',
 'allianceauth.notifications',
 'allianceauth.thirdparty.navhelper',
 'allianceauth.analytics',
 'allianceauth.eveonline.autogroups',
 'allianceauth.hrapplications',
 'allianceauth.corputils',
 'allianceauth.permissions_tool',
 'allianceauth.optimer',
 'allianceauth.srp',
 'allianceauth.timerboard',
 'allianceauth.services.modules.phpbb3',
 'allianceauth.services.modules.discord',
 'blacklist',
 'package_monitor',
 'fittings',
 'eveuniverse',
 'structures',
 'memberaudit',
 'celeryanalytics',
 'corptools',
 'invoices',
 'moons']
Installed Middleware:
['django.middleware.security.SecurityMiddleware',
 'django.contrib.sessions.middleware.SessionMiddleware',
 'django.middleware.locale.LocaleMiddleware',
 'django.middleware.common.CommonMiddleware',
 'django.middleware.csrf.CsrfViewMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'django.contrib.messages.middleware.MessageMiddleware',
 'django.middleware.clickjacking.XFrameOptionsMiddleware',
 'allianceauth.analytics.middleware.AnalyticsMiddleware']

Traceback (most recent call last):
  File "/home/allianceserver/venv/auth/lib/python3.7/site-packages/django/core/handlers/exception.py", line 47, in inner
    response = get_response(request)
  File "/home/allianceserver/venv/auth/lib/python3.7/site-packages/django/core/handlers/base.py", line 181, in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/home/allianceserver/venv/auth/lib/python3.7/site-packages/django/contrib/auth/decorators.py", line 21, in _wrapped_view
    return view_func(request, *args, **kwargs)
  File "/home/allianceserver/venv/auth/lib/python3.7/site-packages/allianceauth/authentication/decorators.py", line 35, in _wrapped_view
    return view_func(request, *args, **kwargs)
  File "/home/allianceserver/venv/auth/lib/python3.7/site-packages/django/contrib/auth/decorators.py", line 21, in _wrapped_view
    return view_func(request, *args, **kwargs)
  File "/home/allianceserver/venv/auth/lib/python3.7/site-packages/corptools/audit_views/character.py", line 223, in status
    main_char, characters, net_worth = get_alts(request, character_id)
  File "/home/allianceserver/venv/auth/lib/python3.7/site-packages/corptools/audit_views/character.py", line 29, in get_alts
    .get(character_id=int(character_id))\
  File "/home/allianceserver/venv/auth/lib/python3.7/site-packages/django/db/models/query.py", line 437, in get
    self.model._meta.object_name

Exception Type: DoesNotExist at /audit/char/1/overview/
Exception Value: EveCharacter matching query does not exist.

allianceauth.log

[05/Nov/2021 02:38:34] ERROR [django.request:230] Internal Server Error: /audit/char/1/overview/
Traceback (most recent call last):
  File "/home/allianceserver/venv/auth/lib/python3.7/site-packages/django/core/handlers/exception.py", line 47, in inner
    response = get_response(request)
  File "/home/allianceserver/venv/auth/lib/python3.7/site-packages/django/core/handlers/base.py", line 181, in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/home/allianceserver/venv/auth/lib/python3.7/site-packages/django/contrib/auth/decorators.py", line 21, in _wrapped_view
    return view_func(request, *args, **kwargs)
  File "/home/allianceserver/venv/auth/lib/python3.7/site-packages/allianceauth/authentication/decorators.py", line 35, in _wrapped_view
    return view_func(request, *args, **kwargs)
  File "/home/allianceserver/venv/auth/lib/python3.7/site-packages/django/contrib/auth/decorators.py", line 21, in _wrapped_view
    return view_func(request, *args, **kwargs)
  File "/home/allianceserver/venv/auth/lib/python3.7/site-packages/corptools/audit_views/character.py", line 223, in status
    main_char, characters, net_worth = get_alts(request, character_id)
  File "/home/allianceserver/venv/auth/lib/python3.7/site-packages/corptools/audit_views/character.py", line 29, in get_alts
    .get(character_id=int(character_id))\
  File "/home/allianceserver/venv/auth/lib/python3.7/site-packages/django/db/models/query.py", line 437, in get
    self.model._meta.object_name
allianceauth.eveonline.models.EveCharacter.DoesNotExist: EveCharacter matching query does not exist.