KryptedGaming / django-eveonline-connector

Django extension that adds entity models, SSO views, and celery tasks to interact with the #1 sci-fi sandbox MMO.
https://pypi.org/project/django-eveonline-connector/
MIT License
1 stars 1 forks source link

Missing scope - should delete #72

Open porowns opened 3 years ago

porowns commented 3 years ago
Task django_eveonline_connector.tasks.update_character_journal[13efda33-d5e2-48c8-8ae1-d1cc3185cd30] raised unexpected: EveMissingScopeException('EveClient was passed a character_id that does not have the proper token: {}',)

Traceback (most recent call last):
  File "/opt/krypted/app/packages/django-eveonline-connector/django_eveonline_connector/models.py", line 117, in call
    'character_id'), scopes__in=required_scopes)
  File "/usr/local/lib/python3.6/site-packages/django/db/models/manager.py", line 82, in manager_method
    return getattr(self.get_queryset(), name)(*args, **kwargs)
  File "/usr/local/lib/python3.6/site-packages/django/db/models/query.py", line 408, in get
    self.model._meta.object_name
django_eveonline_connector.models.EveToken.DoesNotExist: EveToken matching query does not exist.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/celery/app/trace.py", line 385, in trace_task
    R = retval = fun(*args, **kwargs)
  File "/usr/local/lib/python3.6/site-packages/celery/app/trace.py", line 648, in __protected_call__
    return self.run(*args, **kwargs)
  File "/opt/krypted/app/packages/django-eveonline-connector/django_eveonline_connector/tasks.py", line 264, in update_character_journal
    op, *args, delete=False, **kwargs, character_id=character_id, data_model=data_model)
  File "/opt/krypted/app/packages/django-eveonline-connector/django_eveonline_connector/tasks.py", line 181, in update_character_eveentitydata
    response = EveClient.call(op, character_id=character.external_id)
  File "/opt/krypted/app/packages/django-eveonline-connector/django_eveonline_connector/models.py", line 120, in call
    f"EveClient was passed a character_id that does not have the proper token: {required_scopes}")
django_eveonline_connector.exceptions.EveMissingScopeException: EveClient was passed a character_id that does not have the proper token: {}