Select to view content in your preferred language

Token required but not passed in the request.

528
1
08-03-2022 12:41 PM
ShikunChen
New Contributor

I am trying to run this notebook,
[finding_routes_for_appliance_delivery_with_VRP_solve](https://github.com/Esri/arcgis-python-api/blob/master/samples/04_gis_analysts_data_scientists/findin...)
but I kept having this error:
```
Exception: Token required but not passed in the request.
Token required.
(Error Code: 499)
```
when run to the code:
```
# Read the csv file and convert the data to feature set
orders_df = pd.read_csv(orders_csv)
orders_sdf = pd.DataFrame.spatial.from_df(orders_df, "Address")
orders_fset = orders_sdf.spatial.to_featureset()
```
I tried to access Gis by:

```
gis = GIS(username="*****", password="******")
```

I don't have a pro account, and I am running my code on Google Colab. Do I need a Pro account to access this service? Or anyone can tell me how to access this service?

1 Reply
RogerDunnGIS
Frequent Contributor

Your question might have been best asked on the Github site.  Although I didn't read the whole thing from top to bottom, one line caught my eye:

Note :If you run the tutorial using ArcGIS Online, 2 credits will be consumed.

Credits are definitely only something you get when you are a member of ArcGIS Online.  Let me know if this answered your question (even if it was disappointing news), by marking this post as an answer.

Let us know and good luck!

0 Kudos