Discussions

Ask a Question
Back to All

Error getting access token

curl --request POST
--url 'https://auth.immersity.ai/auth/realms/immersity/protocol/openid-connect/token'
--header 'accept: application/json'
--header 'content-type: application/json'
--data '
{
"grant_type": "client_credentials",
"client_id": "bd22b110-2b79-44a2-b2eb-e1e026dd68f8",
"client_secret": "..."
}
'

Response:

{
"error": "RESTEASY003065: Cannot consume content type"
}

Why I got this error?