Python Script Error 10054 Connection abort

08-02-2020 09:23 PM
New Contributor

I'm runing a python script to update some features in the AGOL from my university, i have the creator permissions, but it gives me the error 10054 connection abort by the host every time i run the code, can someone help me? Thanks, have a great day.

0 Kudos
1 Reply
Esri Contributor

I upgraded to the latest version of the ArcGIS Python API and added the following garbage collection code to my script:

import gc

#every time before I upload something


From some research I did it seems like Python wants to put the entire file into memory before uploading it, and occasionally this can cause the error...  

FYI same issue here -> 

0 Kudos