errors fetching killmails

Help and support in getting the EVE-Dev Killboard to run on your site.
UncleSam
Noob
Posts: 5
Joined: Thu May 24, 2018 10:57

errors fetching killmails

Post by UncleSam » Sun May 27, 2018 16:42

Hi there,

I installed the killboard on my webspace and tried to let it fetch all killmails from zkillboard and esi api for our corp. After some fetches I only get errors. Maybe you can help me.

zKillboard fetch (corp id was replaced with 123123123):

Code: Select all

ZKBApi: https://zkillboard.com/api/corporationID/123123123/
0 kills were posted and 2 were skipped (200 kills fetched). Timestamp of last kill: 2017-08-01 20:14:35
Error communicating with ESI, aborting!
[400] Error connecting to the API (https://esi.evetech.net/v2/corporations/names/?corporation_ids=804504419%2C1698858600%2C98264182%2C98311406%2C98481776%2C98437545%2C98426237%2C98022235%2C98379807%2C1032131311%2C98357564%2C1000166%2C98270640%2C98516626%2C739403251%2C98237776%2C98238722%2C98273331%2C98505848%2C98520407%2C98519945%2C98450785%2C98508973%2C98391482%2C98083818%2C98444859%2C98024658%2C98354736%2C98373406%2C98377766%2C98337364%2C98427133%2C98362863%2C98446700%2C272675225%2C98512293%2C98432261%2C211551078%2C98413060%2C1000077%2C98227789%2C98185698%2C98088974%2C878023749%2C98113726%2C786820753%2C1576307093%2C98428587%2C215154456%2C1699299696%2C98288736%2C98496769%2C98462540%2C667531913%2C98454925%2C98403073%2C98157146%2C1753357224%2C624410653%2C98282165%2C1485023514%2C164893220%2C1634775132%2C211562930%2C98125412%2C98097252%2C1504994727%2C679900455%2C98024186%2C1621467653%2C98483028%2C98515207%2C635210548%2C98479815%2C98508741%2C1297657426%2C1817710684%2C98420243%2C98409330%2C98127442%2C744976238%2C98370861%2C98459795%2C398598576%2C1187207583%2C98176435%2C98011082%2C1063360566%2C98441192%2C98145496%2C98443943%2C98498398%2C98060580%2C98394676%2C98438583%2C98505343%2C1000046%2C1294210740%2C98515019%2C98180098%2C98429018%2C98199279)
ESI corp fetch (corp id was replaced with 123123123):

Code: Select all

0 kills posted, 0 skipped.
[401] Error connecting to the API (https://esi.evetech.net/v1/corporations/123123123/killmails/recent/?datasource=tranquility)
Did not get any Kills.
My environment:
- Apach2
- Ubuntu 16.04 LTS
- PHP 7.0

User avatar
Salvoxia
Developer
Posts: 1528
Joined: Wed Feb 22, 2012 12:11

Re: errors fetching killmails

Post by Salvoxia » Sun May 27, 2018 19:48

Hi,

could you please try replacing your common/includes/esi/class.helpers.php with the one attached and see if that helps?

Best Regards,
Salvoxia
Attachments
class.helpers.zip
(4.48 KiB) Downloaded 31 times

UncleSam
Noob
Posts: 5
Joined: Thu May 24, 2018 10:57

Re: errors fetching killmails

Post by UncleSam » Sun May 27, 2018 23:22

I found the (possible) main reason of the esi problem:
The char which is authed changed the account password. This seems to invalidate all ESI tokens too which leads into 400 error messages.

I hope to be able to talk to the account owner tomorrow to reauth and I think this is fixing the troubles :P.

User avatar
Salvoxia
Developer
Posts: 1528
Joined: Wed Feb 22, 2012 12:11

Re: errors fetching killmails

Post by Salvoxia » Mon May 28, 2018 07:29

Hi,

oh, I didn't notice the different status codes for zKBFetch and ESI fetch. The fix I posted should take care of ZKBFetch, and I you're right about refresh tokens being invalidated by an account password change.
Such failures should increase the "error count" on the SSO page in ACP. When an SSO token reaches three errors, it should be disabled automatically.

Best Regards,
Salvoxia

UncleSam
Noob
Posts: 5
Joined: Thu May 24, 2018 10:57

Re: errors fetching killmails

Post by UncleSam » Mon May 28, 2018 13:18

Yesterday I got an error even after the patched file. But till today it seems that it fetched all killmails from zkillboard (and even trying it using the admin interface it tells no errors).

So the only thing is the ESI key which I hopefully get today :-).

Thank you very much for your help!

BluePeer
Noob
Posts: 3
Joined: Sat Jun 02, 2018 11:20

Re: errors fetching killmails

Post by BluePeer » Sat Jun 02, 2018 11:27

oO
That have nothing to do with the token ^^

[400] Error connecting to the API (https://esi.evetech.net/v2/cor if you open the full url line in browser the esi api tells you the problem
{"error":"too many items for 'corporation_ids', 'corporation_ids' is required"}



see my bugreport
http://evekb.org/forum/viewtopic.php?f= ... 511#p50511

User avatar
Salvoxia
Developer
Posts: 1528
Joined: Wed Feb 22, 2012 12:11

Re: errors fetching killmails

Post by Salvoxia » Sat Jun 02, 2018 19:25

Hi,

if you look closely, you will find two different errors in the first post.
One with HTTP 400, which is caused by the issue you reported, and one with HTTP 401, which is indeed caused by an invalid refresh token.

Best Regards,
Salvoxia

User avatar
prometh
Advanced
Posts: 169
Joined: Thu Aug 09, 2012 19:25
Contact:

Re: errors fetching killmails

Post by prometh » Thu Jun 07, 2018 09:38

Hey Salvoxia, I found another possible explanation for invalid refresh tokens. The refreshTokens in the Database are limited to 255 characters which is what I did for a while however due to changes on ccps side, refresh tokens can be much longer now and also the length is completely random, I have seen close to 400 chars for a single scope.

Cheers,
Snitch

User avatar
Salvoxia
Developer
Posts: 1528
Joined: Wed Feb 22, 2012 12:11

Re: errors fetching killmails

Post by Salvoxia » Thu Jun 07, 2018 11:07

Hi,

thanks for the heads up!
I'll update the database accordingly.
However, since EDK ever only requests one scope, that should not contribute to the token length.

Best Regards,
Salvoxia

ZHNovell
Noob
Posts: 9
Joined: Fri Feb 16, 2018 10:24

Re: errors fetching killmails

Post by ZHNovell » Fri Jun 22, 2018 13:49

Code: Select all

ZKBApi: https://zkillboard.com/api/allianceID/1411711376/
0 kills were posted and 4 were skipped (200 kills fetched). Timestamp of last kill: 2018-06-18 10:56:26
Error communicating with ESI, aborting!
[404] Error connecting to the API (https://esi.evetech.net/v1/characters/names/?character_ids=92724363)
ZKBApi: https://zkillboard.com/api/allianceID/99002392/
0 kills were posted and 0 were skipped (63 kills fetched). Timestamp of last kill: 2018-06-18 16:43:27
Error communicating with ESI, aborting!
[404] Error connecting to the API (https://esi.evetech.net/v1/characters/names/?character_ids=91370087%2C93204384)

Post Reply

Return to “Support”

Who is online

Users browsing this forum: No registered users and 14 guests