ArcGIS Hub enforcing HTTPS in September 2020

391
3
07-23-2020 07:35 PM
GrahamHudgins
Esri Regular Contributor

Wanted to open this discussion based on my recent blog post - ArcGIS Hub Enforcing HTTPS 

If there are questions for us ahead of time, please let us know!

3 Replies
mpc
by
Occasional Contributor

Is Esri planning to fix the DCAT data.json feeds prior to this, as these are still producing HTTP urls instead of HTTPS?

GrahamHudgins
Esri Regular Contributor

Thanks for letting us know, yes we will be addressing this issue.

0 Kudos
CliveS-bimgham
New Contributor II

Greetings,

I am having an issue trying to log into a ESRi ArcGIS Hub, keep getting a ConnectionError.                                 I am using the user id, used to login to the ESRI Hub. If I post the URL, etc into a browser it works, it throws an error in Python??

Appreciate any pointers to resolve this.

url = "https://www.arcgis.com/sharing/generateToken"

payload='username=username&password=passwordF&referer=https://org-data-hub-org.arcgis.com&f=json'
headers = {'Content-Type': 'application/x-www-form-urlencoded', 'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64)' }

response = requests.request("POST", url, headers=headers, data=payload)

 

The error message is:

ConnectionError                           Traceback (most recent call last)
In  [16]:
Line 46:    response = requests.request("POST", url, headers=headers, data=payload)

File C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\requests\api.py, in request:
Line 61:    return session.request(method=method, url=url, **kwargs)

File C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\requests\sessions.py, in request:
Line 530:   resp = self.send(prep, **send_kwargs)

File C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\requests\sessions.py, in send:
Line 643:   r = adapter.send(request, **kwargs)

File C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\requests\adapters.py, in send:
Line 498:   raise ConnectionError(err, request=request)

ConnectionError: ('Connection aborted.', ConnectionResetError(10054, 'An existing connection was forcibly closed by the remote host', None, 10054, None))

 

0 Kudos