When running the following code we are getting random http gateway time-out errors
replica1 = newRep.replicas.create(replica_name = (featureLayer + "_replica"),
return_attachments ='true',
attachments_sync_direction='bidirectional',
layers='0',
data_format='filegdb',
out_path = FilesFromAGOL)
DEBUG:root:ERROR - HTTP Error 504: Gateway Time-out
I am looping through 10 hosted feature layers and the above error is thrown randomly at one of them, sometimes at layer 5 sometimes at layer 10. The same code on the same layers has been running fine. Trying to figure out if is an issue on the ESRI end that is stopping the replica creation all of a sudden.
Any ideas that i can use to test and isolate the timeout source.