whinis / eve-jacknife

An api auditing tool for EVE Online written in php, works with api keys or SSO access tokens.
http://evejackknife.com/
22 stars 12 forks source link

Errors when viewing kills or transactions. #14

Closed PerMalmberg closed 8 years ago

PerMalmberg commented 8 years ago

We've got an application with an API that gives the following error when viewing either kills or transactions, any idea what's going on?

PHP Notice:  Trying to get property of non-object in 
/jackknife/eveApi/eveApi.base.php on line 71, referer: /jackknife/index.php?chid=881003936&usid=111111&apik=222222222&save=1&small

PHP Fatal error:  Call to a member function xpath() on a non-object in /jackknife/eveApi/eveApiCharacterAffiliations.class.php on line 36, referer: /jackknife/index.php?chid=881003936&usid=1111111&apik=2222222&save=1&small

Br,

Per

whinis commented 8 years ago

So, that error seems to suggest that it can't find either a corp, alliance, or player that is on the killmail or transaction which is odd because none-should have been deleted from eve.

PerMalmberg commented 8 years ago

Ok, what can I do to help track it down?

whinis commented 8 years ago

Ill put in code to check for the error as there is nothing I can realistically do about a player that has disappeared.

PerMalmberg commented 8 years ago

True that.

Will you just skip the entry or print "unknown" (or similar) instead?

whinis commented 8 years ago

ill add Unknown (player/corp/alliance)

PerMalmberg commented 8 years ago

Very good. Thanks for the quick replies.

markus-lassfolk commented 8 years ago

I've just installed the latest version (git clone) and I'm also experiencing this issue.

whinis commented 8 years ago

@markus-lassfolk Could you try that and see if it gives you a new error now? I am having trouble finding an api that is actually generating this error.

markus-lassfolk commented 8 years ago

Please send me a mail to markus at lassfolk dot net and i will give you a key that works

markus-lassfolk commented 8 years ago

Sent a key to you on bitbucket where i could send a pm

whinis commented 8 years ago

Alright, I just committed something that should fix the problem. It occurred whenever I attempted to ask ccp about more than 250 characters/alliances/corps. The api only allows 250 so returned an error and broke things. It should now chunk the asked characters into 250 at a time.