esi-issues
esi-issues copied to clipboard
Public contract items endpoint `403` due to `Contract accepted by player, requires authorization`
Bug
The public contract items endpoint is not allowing items to be fetched due to it being accepted by a player?
Possibly could have something to do with the items being in a can?

Request
GET /contracts/public/items/162065201/
GET /contracts/public/items/161902569/
Response
Status Code
403
Headers
date: Sun, 13 Sep 2020 21:22:22 GMT
content-type: application/json; charset=UTF-8
content-length: 63
access-control-allow-credentials: true
access-control-allow-headers: Content-Type,Authorization,If-None-Match,X-User-Agent
access-control-allow-methods: GET,HEAD,OPTIONS
access-control-allow-origin: *
access-control-expose-headers: Content-Type,Warning,ETag,X-Pages,X-ESI-Error-Limit-Remain,X-ESI-Error-Limit-Reset
access-control-max-age: 600
allow: GET,HEAD,OPTIONS
strict-transport-security: max-age=31536000
x-esi-error-limit-remain: 99
x-esi-error-limit-reset: 38
x-esi-request-id: 5d50dcf1-6d6e-47e1-814b-bb2c2038567a
Body
{
"error": "Contract accepted by player, requires authorization"
}
Expected
200
[
{
"is_blueprint_copy": true,
"is_included": true,
"type_id": 28607,
"quantity": 1,
...
},
...
]
Checklist
Check all boxes that apply to this issue:
- [x] Bug description is provided
- [x] Request path is provided
- [x] Response status code is provided
- [x] Response headers are provided
- [x] Response body is provided
- [x] Expected response is provided
This happens when you try to resolve items from a contract that has since been accepted. I still think this is a bug because the contract is still publicly viewable, just has been completed.
Internal issue created: TTC-3754