clone_items() fails with timeout error
- Vorherrschende Sprache
- Python
- Sterne
- 2.2k
- Forks
- 1.2k
- Ø Merge
- 2 Std. 40 Min.
- Gemergte PRs (30 T.)
- 2
Beschreibung
**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
Beitragsleitfaden
Rechercherichtung
Beginne damit, den bereitgestellten Aufruf clone_items() mit dem großen Feature-Layer und den Anhängen zu reproduzieren, und untersuche anschließend arcgis/_impl/common/_clone.py in der Nähe von Zeile 4270. Vergleiche das Timeout-Verhalten mit kleineren Feature-Layern. Als abgeschlossen gilt die Aufgabe, wenn das unterstützte Größen- oder Timeout-Verhalten ermittelt und ein verifizierter Workaround dokumentiert wurde oder ein reproduzierbarer Fix identifiziert wurde.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- python
- Bereich
- api, data
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Muss geklärt werden
- Anfängerfreundlichkeit
- 25/100