esi-issues icon indicating copy to clipboard operation
esi-issues copied to clipboard

/characters/{character_id}/cspa/ returning incorrect values

Open CarbonAlabel opened this issue 9 years ago • 5 comments

The cost reported by the endpoint is inconsistent with the cost reported by the game client.

Example:

POST /latest/characters/93265215/cspa/?datasource=tranquility HTTP/1.1
User-Agent: curl/7.35.0
Host: esi.tech.ccp.is
Content-Type: application/json
Accept: application/json
Authorization: Bearer *****
Content-Length: 25

{"characters":[92168909]}

Returns:

HTTP/1.1 201 CREATED
Server: nginx
Date: Thu, 01 Dec 2016 00:11:09 GMT
Content-Type: application/json
Content-Length: 11
Access-Control-Allow-Methods: GET,POST,DELETE,PUT,PATCH,OPTIONS
Access-Control-Expose-Headers: Content-Type,Authorization
Access-Control-Allow-Headers: Content-Type,Authorization
Access-Control-Allow-Origin: *
Strict-Transport-Security: max-age=31536000
Access-Control-Allow-Credentials: true
Via: 1.1 google
Alt-Svc: clear

{"cost": 0}

The client disagrees: image

CarbonAlabel avatar Dec 01 '16 00:12 CarbonAlabel

$ curl -i --compressed -X POST --header 'Content-Type: application/json' --header 'Accept: application/json' --header 'Authorization: Bearer <some token>' -d '{"characters": [92168909]}' 'https://esi.tech.ccp.is/latest/characters/<some character>/cspa/?datasource=tranquility'
HTTP/1.1 201 CREATED
Server: nginx
Date: Mon, 23 Jan 2017 22:19:20 GMT
Content-Type: application/json
Content-Length: 14
Vary: Accept-Encoding
Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: GET,POST,DELETE,PUT,PATCH,OPTIONS
Access-Control-Allow-Headers: Content-Type,Authorization
Access-Control-Expose-Headers: Content-Type,Authorization
Access-Control-Allow-Credentials: true
Strict-Transport-Security: max-age=31536000
Via: 1.1 google
Alt-Svc: clear

{"cost": 1000}

a-tal avatar Jan 23 '17 22:01 a-tal

Was a change made that fixed it or just not able to repro?

regner avatar Jan 24 '17 17:01 regner

@Regner unable to repro, seems to be limited to my main character only.

CarbonAlabel avatar Jan 24 '17 17:01 CarbonAlabel

This is still occurring, and I've had a couple other people approach me with the same problem: for certain characters, ESI always responds with a CSPA cost of 0, contrary to that shown by the client.

Please reopen.

CarbonAlabel avatar Apr 27 '18 20:04 CarbonAlabel

Still occurring five years later — appears to return always zero.

joaomlneto avatar Jun 24 '23 17:06 joaomlneto