clone_items() fails with timeout error
- Lenguaje dominante
- Python
- Estrellas
- 2.2k
- Forks
- 1.2k
- Merge medio
- 2 h 40 min
- PR fusionados (30 d)
- 2
Descripción
**Describe the bug**
I have an ArcGIS Online Hosted Feature Layer, its size is 255 MB, it has attachments with size: 12.53 GB. It's failing to clone (clone_items) due to time out after about 15-20 minutes.
Smaller Feature Layers clone without issues.
Is there a limit to the size of the items we can clone? If there is, is there a way to work around this?
**To Reproduce**
Steps to reproduce the behavior:
```python
from arcgis.gis import GIS
gis = GIS("https://arcgis.com", "username", "password", expiration=9999)
layer = gis.content.get("featureserviceid")
gis.content.clone_items([layer], "Test Folder")
```
error:
```python
Your request has timed out. : (Error Code: 504)', )
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\Lib\site-packages\arcgis\_impl\common\_clone.py", line 4270, in clone
raise _ItemCreateException(
arcgis._impl.common._clone._ItemCreateException: ('Failed to create Feature Service service_name: Your request has timed out. (Error Code: 504)', )
```
**Platform:**
- OS: Windows 11
- Browser Edge
- Python API Version 2.4.0
Guía de contribución
Línea de trabajo
Comienza reproduciendo la llamada proporcionada a clone_items() con la feature layer grande y los archivos adjuntos; después, inspecciona arcgis/_impl/common/_clone.py alrededor de la línea 4270. Compara el comportamiento del timeout con feature layers más pequeñas. Se considera completado cuando se haya establecido el comportamiento compatible respecto al tamaño o al timeout y se haya documentado una solución alternativa verificada, o cuando se haya identificado una corrección reproducible.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- python
- Área
- api, data
- Tipo de issue
- Error
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Estado de actividad
- Estancado
- Claridad
- Necesita aclaración
- Aptitud para principiantes
- 25/100