SAP Knowledge Base Article - Preview

3759486 - OAuth token service (oauth/token) is rejecting requests with an HTTP 406 Not Acceptable error when an explicit Accept header is passed by the client

Symptom

Client is sending an incorrect and incompatible Accept header and the request is being rejected by the server and returns HTTP 406 Not Acceptable

On checking, internal XSUAA logs, below error can be seen.

--------------

Exception:
org.springframework.web.HttpMediaTypeNotAcceptableException
Message:
Could not find acceptable representation

--------------


Read more...

Environment

SAP Business Technology Platform

Product

SAP Business Technology Platform all versions

Keywords

xsuaa, uaa, oauth/token, content-type, application/json, application/json;charset=utf-8, accept header, 406 not acceptable, http 406, rfc 9110, token endpoint, media type, content negotiation, http semantics, httpmediatypenotacceptableexception , KBA , BC-CP-CF-SEC-IAM , UAA, Authentication, Authorization, Trust Mgmnt , Problem

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.