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

Character Contract Bids endpoint return HTTP 500

Open warlof opened this issue 5 years ago • 3 comments

Bug

When requesting contract bids from an auction type contract, I receive an unexpected 500 error.

Request

GET /latest/characters/90633617/contracts/124758629/bids/?datasource=tranquility

Response

Status Code

500

Headers

Date: Thu, 09 Apr 2020 14:12:00 GMT
X-ESI-Request-ID: 6c50fbd6-0150-4a17-b4c4-d850e6f354e1 

Body

{
  "error": "Unhandled internal error encountered!"
}

Expected

Status Code

200

Body

[
    {
        "amount": 4646548.54,
        "bid_id": 65465431,
        "bidder_id": 90479794,
        "date_bid": "2017-11-20T13:17:34Z"
    }
]

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

warlof avatar Apr 09 '20 14:04 warlof

Could it be that you’re trying to request a deleted contract? You have never been able to get contract details for deleted contracts.

GoldenGnu avatar Apr 09 '20 18:04 GoldenGnu

It's difficult to say, according to database, it's a contract with status finished. However, the entry is 3 years old, so could it be the reason ?

If that's the case, we should get a 400 or a 404. At least, something more meaningful.

warlof avatar Apr 09 '20 19:04 warlof

Very likely from internal cleanup like @warlof suggests, and should return a meaningful status code and not cause internal errors.

gitAskur avatar Nov 03 '20 09:11 gitAskur