Select to view content in your preferred language

ApiKey not working

259
1
08-01-2024 10:08 PM
mnoel2
by
Occasional Contributor

I have  followed the Esri developer documentation to use the places, for an web application that finds the nearest UFO sighting when you enter a city and clicks search. I'm following the esri documentation developer near-search documentation  however keep getting 

 

{
"error": {
"code": 498,
"message": "Token Invalid.",
"details": [
"The required authentication information is invalid. The token is either invalid or has expired."
],
"restInfoUrl": places
}
}

my token expires 10/31/2024. I have regenerated my token but still getting errors indicating the same invalid token that has been expired.

can someone please review my code to see if there are any logic errors or I'm not constructing the request correctlly UFO Githug Code 

0 Kudos
1 Reply
mnoel2
by
Occasional Contributor

this question is no longer valid I was using the places service the wrong way, all I need to do was use the geometry engine to find the nearest ufo sighting. Thank you for anyone who took the time to look into this issue.

0 Kudos