ESI provider returning ObjectNotFound for valid corp IDs
Created by: rynan7
When I go to update corp stats because it is not doing it automatically I get the a 500 error page. I checked the logs and this is what I get:
[2017-02-23 20:06:32,172: ERROR/MainProcess] Task eveonline.tasks.update_corp[42032420-448c-4e82-b02a-b79195bc1153] raised unexpected: ObjectNotFound()
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/celery/app/trace.py", line 240, in trace_task
R = retval = fun(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/celery/app/trace.py", line 438, in __protected_call__
return self.run(*args, **kwargs)
File "/home/allianceserver/allianceauth/eveonline/tasks.py", line 106, in update_corp
EveManager.update_corporation(id, is_blue=is_blue)
File "/home/allianceserver/allianceauth/eveonline/managers.py", line 142, in update_corporation
return EveManager.update_corporation_obj(EveManager.get_corporation(id), is_blue=is_blue)
File "/home/allianceserver/allianceauth/eveonline/managers.py", line 119, in get_corporation
return cls.get_adapter().get_corp(corp_id)
File "/home/allianceserver/allianceauth/eveonline/providers.py", line 421, in get_corp
obj = self._get_corp(id)
File "/home/allianceserver/allianceauth/eveonline/providers.py", line 447, in _get_corp
return self.corp_provider.get_corp(id)
File "/home/allianceserver/allianceauth/eveonline/providers.py", line 267, in get_corp
raise ObjectNotFound(id, 'corporation')
ObjectNotFound
Any idea what can cause this.