JSONDecodeError after updating to Pro 2.7

583
4
01-27-2021 07:46 AM
JasonJordan00
Occasional Contributor

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 

Tags (1)
0 Kudos
4 Replies
MehdiPira1
Esri Contributor

Hi @JasonJordan00 

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.

0 Kudos
JasonJordan00
Occasional Contributor

Yes, Portal and server are both operating normally. Again, this began happening immediately after upgrading to Pro 2.7.

0 Kudos
JasonJordan00
Occasional Contributor

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.

0 Kudos
FrankMancini
New Contributor III

Maybe this workaround will help... https://support.esri.com/en/technical-article/000024610

 

0 Kudos