Select to view content in your preferred language

Python Script Error 10054 Connection abort

2612
1
08-02-2020 09:23 PM
MartimPresser
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
DanMallett
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

gc.collect()

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 -> https://community.esri.com/thread/254332-getting-winerrors-10060-and-10054-when-using-arcgis-api-for... 

0 Kudos