Getting Error Codes 502,503,504  while pulling data from Argcis online In python, 
I've set up exceptions to retry once after 5 seconds yet I'm still having issues getting data, 
Is it that I'm attempting to pull too much information all at once? 
I have layers that can have up to 15000 points with several attributes  
Or is it that my feature services are being accessed by other users and the server cannot respond ? 
try:
SDF=pd.DataFrame.spatial.from_layer(feature_layers[layer_index])
 except:
 print("Failed to download Retry")
 time.sleep(5)
SDF=pd.DataFrame.spatial.from_layer(feature_layers[layer_index])