• tjn11
  • NEWBIE
  • 0 Points
  • Member since 2012

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 3
    Questions
  • 2
    Replies

I am using the refresh token flow to obtain an access token to use in REST API calls. Im succesfully getting an access token back in the response from my refresh token flow call. The problem is that performing a simple query like "select name from user" with the RESP API and the access token returned from the refresh token flow gives me the following error.

 

The remote server returned an error: (500) Internal Server Error.

An unexpected error occurred. Please include this ErrorId if you contact support: 2141401881-27724 (-1063440253)

errorCode:UNKNOWN_EXCEPTION

 

I can get an access token using the username-password flow and make the same query no problem.

 

In either case, im putting the following in the header of query call

 

"Authorization: OAuth " + AccessToken

 

do I need to put something different when my access token was obtained via a refresh token flow?