Pokemon-Go-Rocket-API icon indicating copy to clipboard operation
Pokemon-Go-Rocket-API copied to clipboard

StartGymBattle response most times is empty

Open jamie2016-1 opened this issue 9 years ago • 2 comments

Hi I am calling the StartGymBattle service and most times like 999 out of a 1000 its totally empty. On the odd rare occasion its populated and the request is successful.

The parameters I pass are consistent in all 1000 tests, so I dont know what is wrong. Any ideas?

I see others have had similar problems but that was also linked to the fixed64 in the POGOProtos but that is fixed now right? Also if it wasnt I would fail 1000 out of 1000 times.

jamie2016-1 avatar Aug 12 '16 19:08 jamie2016-1

yes i had this error its due to timings if you enter the gym to quickly it returns empty or invalid defender

ghost avatar Aug 13 '16 17:08 ghost

I already have a delay and a loop for a number of times, I delay on each iteration of the loop. Is this not enough? What delay do you say is expected?

Regarding the defender isnt it a parameter we are supposed to provide, according to https://github.com/tejado/pgoapi/wiki/start_gym_battle its something we input or? I have been passing in the first pokemon in the members returned from the GetGymDetails call.

I would really like how you handle this situation and see where I am going wrong.

jamie2016-1 avatar Aug 13 '16 18:08 jamie2016-1