WARNING:urllib3.connectionpool:Connection pool is full, discarding connection
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 32/100
Research direction
Reproduce the warning with the provided Python notebook script, focusing on target.content.clone_items and the many-layer Web Map cloning case. Investigate the urllib3 connection-pool behavior involved in that entry point; done means the layers clone successfully without connection-pool error messages.
Written by the indexing model from the issue text.
Description
Describe the bug
Cloning Web Maps with many layers in ArcGIS Online notebook causes urllib connection pool errors. possibly due to many hosted feature views published from single hosted feature layers, or many hosted feature layers in the web maps, not sure.
To Reproduce
Steps to reproduce the behavior:
print('importing modules')
from arcgis.gis import GIS
import urllib3
from getpass import getpass
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
# Variables
source = GIS("home")
print(source)
target = GIS(url = r'https://tgt.maps.arcgis.com',username = 'tgt_usr',password = getpass())
print(target)
print('Ready to clone')
source_group = source.groups.get(source_group_id)
items_to_clone = source_group.content()
print(f'Source Group: {source_group.title}')
print(f'Source User: {source.users.me.username}')
print(f'Target User: {target.users.me.username}')
for item in items_to_clone:
if item.type == 'Web Scene' or item.type == 'Web Experience' or item.type == 'Dashboard':
print(f'Cloning {item.id}: {item.type}: {item.title}')
try:
new_items = target.content.clone_items(items=[item], copy_data=True)
except Exception as e:
print(e)
for new_item in new_items:
print(f'{new_item.id}: {new_item.type}: {new_item.title}')
else:
pass
error:
WARNING:urllib3.connectionpool:Connection pool is full, discarding connection: services6.arcgis.com. Connection pool size: 10
WARNING:urllib3.connectionpool:Connection pool is full, discarding connection: services6.arcgis.com. Connection pool size: 10
WARNING:urllib3.connectionpool:Connection pool is full, discarding connection: services6.arcgis.com. Connection pool size: 10
WARNING:urllib3.connectionpool:Connection pool is full, discarding connection: services6.arcgis.com. Connection pool size: 10
WARNING:urllib3.connectionpool:Connection pool is full, discarding connection: services6.arcgis.com. Connection pool size: 10
WARNING:urllib3.connectionpool:Connection pool is full, discarding connection: services6.arcgis.com. Connection pool size: 10
WARNING:urllib3.connectionpool:Connection pool is full, discarding connection: services6.arcgis.com. Connection pool size: 10
WARNING:urllib3.connectionpool:Connection pool is full, discarding connection: services6.arcgis.com. Connection pool size: 10
WARNING:urllib3.connectionpool:Connection pool is full, discarding connection: services6.arcgis.com. Connection pool size: 10
Expected behavior
All layers to clone without error messages
Platform (please complete the following information):
- OS: Windows
- Browser: Chrome
- Python API Version 2.4 (ArcGIS online)
Additional context
Add any other context about the problem here, attachments etc.
- Dominant language
- Python
- Stars
- 2.2k
- Forks
- 1.1k
- Avg merge
- 2h 40m
- Merged PRs (30d)
- 2
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Esri/arcgis-python-api
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Esri/arcgis-python-api#2513 · 1 comment ·
-
bug
Difficulty 1/5 Under an hour Newbie friendliness 85/100
Esri/arcgis-python-api#2453 · 3 comments ·
-
documentation enhancement
Difficulty 1/5 Under an hour Newbie friendliness 76/100
Esri/arcgis-python-api#2097 · 1 comment ·
-
bug
Difficulty 4/5 3-5 days Newbie friendliness 58/100
Esri/arcgis-python-api#2537 · 3 comments ·
-
bug
Difficulty 4/5 3-5 days Newbie friendliness 56/100
Esri/arcgis-python-api#2531 · 1 comment ·
All issues in Esri/arcgis-python-api
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
use-agent-os/agent-os#3314 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
BasedHardware/omi#15662 · 1 comment ·
-
documentation help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
AiursoftWeb/AnduinOS-2#19 ·