Exception: A general error occurred: 'token' - Closest facility analysis project

233
2
03-22-2024 10:50 AM
Labels (3)
kalpanaGelli
New Contributor II

Hi everyone, 

  i working on a project to perform network analysis ( finding closest facility, best route between multiple stops.) using arcGIS api for python in jupyter notebbok. i used all the required packages and modules. i finished most of the code work and got the results. But when i am running this code, 

Screenshot 2024-03-22 135016.png

getting error like : 

Exception: A general error occurred: 'token'

 I checked authentication credentials , account activity. everything is good. can you please help me to figure out  this one ? can you give your thought one it ? 

0 Kudos
2 Replies
David_McRitchie
Esri Contributor

Hey Kalpana would it be possible to see the full notebook for this?

It could be worth sharing your layers publicly and testing the notebook again. From the error message it seems to definitely be a problem with authenticating, likely with the Network layer, facilities or incidents layers.

For this the following technical blog from Esri Australia is worth consulting.

 

Hope that helps,

David

Esri UK -Technical Support Analyst
0 Kudos
kalpanaGelli
New Contributor II

Hi David, 

   Thanks for your response on it.  I figured out and it was about API key.  

I appreciate your response. Thank you.

0 Kudos