OAUTH2 Plugin-An unexpected error occurred

Hi All,
We are trying to use kong oauth 2 plugin and when we try to fetch access token we are getting “An unexpected error occurred” can someone with similar issue help us to fix it.

curl -i -k -X POST “https://10.195.59.225/geolocation/oauth2/token” --header “Content-Type: application/x-www-form-urlencoded” --data-urlencode “client_id=4Zj5fqDsrctYf6d59NnwVUTF5nTs9BCJ” --data-urlencode “client_secret=aPRtAlqbdZPm81XiABX9lXZWqxVWWw1Y” --data-urlencode “grant_type=client_credentials”
HTTP/1.1 500 Internal Server Error
Date: Mon, 28 Apr 2025 17:51:32 GMT
Content-Type: application/json; charset=utf-8
Connection: keep-alive
Content-Length: 97
X-Kong-Response-Latency: 2
Server: kong/3.8.1.0-enterprise-edition
X-Kong-Request-Id: 2cbffd0866475422cf01ed7714957106

{
“message”:“An unexpected error occurred”,
“request_id”:“2cbffd0866475422cf01ed7714957106”
}