SAP Knowledge Base Article - Preview

3396695 - SAP PI OAuth - Receiver Rest Adapter/Access token request error

Symptom

OAuth access token fetch isn't working. 
Error while processing Authorization request!
[EXCEPTION]
com.sap.aii.af.sdk.xi.oauth.json.JSONException: A JSONObject text must begin with '{' at 1 [character 2 line 1]

In the HTTP traces you can find the response of the access token request similar to the bellow:

HTTP_CLIENT : 757 REPLY: 
3cd.....{"access_token":"xxxxxxxxxxxxxx","token_type":"BEARER","expires_in":3600,"scope":"yyyyyyyyyy"}..0..


Read more...

Environment

SAP Netweaver 7.5

PI/PO

Product

SAP NetWeaver 7.5

Keywords

KBA , BC-XI-CON-RST , Rest Adapter , 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.