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
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.