Since updating to Pro 2.7 this morning I can no longer connect to our Enterprise Portal using the ArcGIS API for Python. Previously, I could connect using this line-
gis = GIS('https://portaladdress/portal',verify_cert=False)
But now suddenly it errors out returning
JSONDecodeError: Expecting value: line 1 column 1 (char 0)
Any ideas? Thanks
You'd better check if your ArcGIS Server and Portal for ArcGIS are running first.
You're also missing the username and password parameters in GIS.
1. Run the Portal url in a web browser to see if Portal is up and running. If not go to Services and restart your Portal.
2. Do the same with ArcGIS Server.
3. Then Run your code again.
======================================================================
Please give a like if helpful and Accept as Solution if it's answered your query.
Yes, Portal and server are both operating normally. Again, this began happening immediately after upgrading to Pro 2.7.
Would anyone have any updates on this? I just upgraded the Python API in Jupyter Notebooks to v1.9 and now its having the same issue so I will have to downgrade back to my old v1.6. Still no luck connecting in Pro now with 2.8.
Maybe this workaround will help... https://support.esri.com/en/technical-article/000024610