500 error in accessing confluence rest api using user impersonation in atlassian connect

I went through this link https://developer.atlassian.com/cloud/jira/platform/user-impersonation-for-connect-apps/ about user impersonation and try to use it for accessing confluence page details (/wiki/rest/api/content/) . I am getting the jwt bearer token. But when I am trying to get the data getting below error

ERROR [500]: Couldn’t make request as user
{ error: ‘No value present’ }

auth_headers={"Content-Type": "application/json",'Accept': 'application/json', 'Authorization': 'Bearer {}'.format(access_token)}
requests.get(data_url,headers= auth_headers)

This is working with basic auth but not with access token .

I am also getting the same error when tried the JavaScript example from Bitbucket
Please help.

Reinstalled the app and authenticated using new oauth client id and shared secret . started working