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

401 error every time I try to list clan battles. #438

Closed fjcsc closed 5 years ago

fjcsc commented 5 years ago

Issue Report:

  1. Did you encounter this recently, or has this bug always been there?

    It is a new issue. I'm getting the 401 error every time I try to list my clan battles.

Request Details:

curl -X GET \
   https://api.royaleapi.com/clan/CLAN_TAG/battles \
   -H 'Authorization: Bearer XXXXXXX \
   -H 'Cache-Control: no-cache'

Response Details:

{"error": true, "status": 401, "message": "Response code 401 (Unauthorized) | Additional information and support: http://discord.me/royaleapi%22%7D

Code: 401

Also noticed that when I try to access battles using the player end point (https://api.royaleapi.com/player//battles), everything works normally.

But if I try to list battles using multiple tags (https://api.royaleapi.com/player/,,/battles) I get the same 401 error.

Can you give me some light on that @selfish ? Thanks a lot!

bobbelsche commented 5 years ago

similar to me but i receive 401 from time to time on the war endpoint. after some minutes same loop is working again.

fjcsc commented 5 years ago

In fact I'm receiving intermittent 401 errors. Most of them are "solved" if I run the script again. The only endpoint that never responds (always receiving 401) is the ...clantag/battle. I do understand that this is a heavy query ... so maybe everybody may be locked out at the moment.

selfish commented 5 years ago

What's the response text?