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):
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):
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.
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 .
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.
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 .
[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"}
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.
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.
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.
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)