RoyaleAPI / cr-api

Clash Royale Analytics, Profiles and Insights. We no longer publish a public API. Please use the official API from Supercell.
https://RoyaleAPI.com
166 stars 20 forks source link

V3 Open Issues #463

Closed selfish closed 3 years ago

selfish commented 5 years ago

Issues:

Feature-requests:

BlackHoleFox commented 5 years ago

It seems like when you request a clan with /clan/tag/tracking and it isn't currently being tracked, it errors the server out instead of the expected response seen in the V2 docs

{
  "error": true,
  "statusCode": 500,
  "statusText": "Cannot fetch clan tracking: pg: no rows in result set",
  "eventId": "6b38ec108566470e89dd6a589c0a3fa6",
  "info": "Additional information and support: http://discord.me/royaleapi"
}
BlackHoleFox commented 5 years ago

On the /clan/<TAG>/history endpoint, the players in the members array are missing the lastSeen field. They exist in V2 and on most of the other responses that return player objects. See comparison with V2 below. image

BlackHoleFox commented 5 years ago

The clanRank and rank fields are still separate on the /clan/history and /clan endpoints, even though it was listed as becoming unified on V82. The most recent war history snapshots show this: image

BlackHoleFox commented 5 years ago

When using the /clan/search endpoint, any other query string except name returns a bad request error even though it matches the format shown in the V2 docs. Ex: https://v3-beta.royaleapi.com/clan/search?maxMembers=3 returns

  "error": true,
  "statusCode": 400,
  "statusText": "Failed to search clans: Failed to search clans: bad response: 400 Bad Request",
  "eventId": "8e28089d914e4479910f6e24a8209c56",
  "info": "Additional information and support: http://discord.me/royaleapi"
}

On a related note, all query strings in a request are ignored after name, such as /clan/search?name=abcd&minMembers=35 returns clans with less then 5 members.

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.