Jump to content


Player list for Account's season Data in API


  • Please log in to reply
1 reply to this topic

Born_in_Dakota13 #1 Posted 25 April 2020 - 10:55 PM

    Private

  • Player
  • 18811 battles
  • 4
  • [BEYOU] BEYOU
  • Member since:
    04-17-2012

Hey,
I'm using Pythons "requests" to pull some data e.g battles in current season for each clan member and I'm getting timeout errors.
I think the problem is, that every player needs his own request which sums up to 100 requests per clan (kinda inefficient).

 

Would it be possible to implement the account_id list "feature" into this method like in others where you can put in a list of account IDs separated by commas or do you know a Workaround?

 

Realm: EU

Method: https://developers.w...nfo/?r_realm=eu << "Account's season data"

Info I need: seasons.battles for up to 100 players
Problem: Timeout error after around 10 requests, sometimes it doesn't even get a single one.
Error:
('Connection aborted.', TimeoutError(10060, 'Ein Verbindungsversuch ist fehlgeschlagen, da die Gegenstelle nach einer bestimmten Zeitspanne nicht richtig reagiert hat, oder die hergestellte Verbindung war fehlerhaft, da der verbundene Host nicht reagiert hat', None, 10060, None))

Translated: ('Connection aborted.', TimeoutError(10060, 'Connection aborted, the server did not respond in a given timespan, or the connection was interrupted, because the connected Host did not respond', None, 10060, None))

 

I'm also pretty sure that my own connection is fine and I know that its worked a few weeks ago perfectly fine. Could also be a problem from pythons side tho...

Thanks in advance!
 


Edited by Born_in_Dakota13, 25 April 2020 - 11:03 PM.


Born_in_Dakota13 #2 Posted 26 April 2020 - 01:27 AM

    Private

  • Player
  • 18811 battles
  • 4
  • [BEYOU] BEYOU
  • Member since:
    04-17-2012
Kinda fixed the issue a few hours ago by implementing a retry session routine... Not very elegant but does its job.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users