Esri / Esri/arcgis-python-api

clone_items() fails with timeout error

オープン
#2,190 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る
bug
主要言語
Python
スター
2.2k
フォーク
1.1k
平均マージ
2時間 40分
マージ済み PR(30日)
2

説明

**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

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

まず、大きなフィーチャ レイヤーと添付ファイルを使用して、提供された clone_items() 呼び出しを再現し、その後 arcgis/_impl/common/_clone.py の 4270 行付近を調査します。小さいフィーチャ レイヤーの場合とタイムアウトの挙動を比較します。サイズまたはタイムアウトについてサポートされる挙動を明らかにして検証済みの回避策を文書化するか、再現可能な修正を特定できれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
python
領域
api, data
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
25/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。