Branch Versioning Reconcile/Post script no longer working after installing ArcGIS Pro 3.3

223
4
a month ago
MichaelSnook
Occasional Contributor III

Hi All

I have had a version of the code example below that reconciles/posts branch versions on a nightly basis for quite some time now. The day I upgraded to ArcGIS Pro 3.3 it no longer works.  The main failure point seems to be in the urllib.request.urlopen request to get the list of versions to reconcile for each service.  I've tested the URL and it is valid along with the token.  Does anyone know if something has changed with the urllib since previous versions.

FYI I tested the sample code below (which says ArcGIS Pro 3.3) but it also fails.

https://pro.arcgis.com/en/pro-app/latest/help/data/geodatabases/overview/automate-reconcile-and-post...

 

Any help would be great.  Thanks!

0 Kudos
4 Replies
DanPatterson
MVP Esteemed Contributor

do you mean urllib3?

" conda list "only lists it as a package


... sort of retired...
0 Kudos
MichaelSnook
Occasional Contributor III

There appears to be something new in the urllib (or urllib3) libraries with Pro 3.3.  I just rolled back to ArcGIS Pro 3.2 and the script and the request.url open successfully returns the list of versions as expected.

 

0 Kudos
MichaelSnook
Occasional Contributor III

I can use urlopen with a webpage (https://google.com) but I get the error when trying to access our server rest endpoint (https://my.server.local/rest).  I'm missing something here.

0 Kudos
MichaelSnook
Occasional Contributor III

There error is:

HTTPSConnectionPool(host='myserver.mc.local', port=443): Max retries exceeded with url: /arcgis/rest/services?f=json (Caused by ProtocolError('Connection aborted.', ConnectionResetError(100
54, 'An existing connection was forcibly closed by the remote host', None, 10054, None)))

 

I have also discovered that this fails also when using the ArcGIS for Python API when trying to get a list of services in the same internal portal instance.

0 Kudos