I have a script to overwrite a hosted feature layer which had been successful everyday for the past year but has stopped working after updating Pro to v3.03. Any ideas to get it working again would be great...I am not a developer so I am really unsure of how to proceed.
The script:
from arcgis.gis import GIS
from arcgis.features import FeatureLayerCollection
#LOG INTO ARGIS ONLINE ORGANIZATION
OrgURL = "my orgs url"
adminUserName = "my user name"
orgpass = "my password"
gis = GIS(OrgURL, username=adminUserName, password=orgpass)
#POINT TOWARDS LOCAL LAYER
LOC = "layers location on my computer"
#FIND FEATURE LAYER USING IT'S ID
ID_Points_ONLINE = gis.content.search("id: Hosted Layer's ID #")
flc_Points_ONLINE = FeatureLayerCollection.fromitem(ID_Points_ONLINE[0])
#OVERWRITE FEATURE LAYER
flc_Points_ONLINE.manager.overwrite(LOC)
Error:
SSLError(
requests.exceptions.SSLError: Please set verify_cert=False due to encountered SSL error: HTTPSConnectionPool(host='bedfordnh.maps.arcgis.com', port=443): Max retries exceeded with url: /sharing/rest/oauth2/authorize?response_type=code&client_id=arcgisonline&redirect_uri=urn%3Aietf%3Awg%3Aoauth%3A2.0%3Aoob&state=1ShzDhlkPgkir63Mm0WO9gvXOa49ZX&expiration=20160&allow_verification=false&style=dark&locale=en-US (Caused by SSLError(SSLError(1, '[SSL: UNSAFE_LEGACY_RENEGOTIATION_DISABLED] unsafe legacy renegotiation disabled (_ssl.c:1129)')))
Note: I have followed the "Please set verify_cert=False" instruction but that doesn't seem to change the outcome