api 2.0 refs/tags sort by created_on causes 500 error

Issue #13095 resolved
Aytaç Kokus
created an issue

Hello,

I get 500 internal server error when I try to sort tags result by created_on. However I don't get internal server error when I don't include it.

Problem with: https://api.bitbucket.org/2.0/repositories/appsaloon/mr-wc-integrator-plugin/refs/tags?sort=-created_on

No problem with: https://api.bitbucket.org/2.0/repositories/appsaloon/mr-wc-integrator-plugin/refs/tags

{"error": {"message": "Internal server error", "id": "9e2f0f45d48141c0a8c08870df9b4cff"}}

Take care,

Aytaç

Comments (4)

  1. Erik van Zijst staff

    You cannot presently sort the refs endpoints.

    However, I did just merge a change that makes them filterable and sortable that should land on production in a few days. Even then though, your query and sort fields should correspond to actual json fields in the response. created_on is not a field present in a ref object. target.date is though and so you will soon be able to sort on that.

  2. Log in to comment