Custom Social Connection - Fetch User Profile

Hey.
“Fetch User Profile Script” always called with an error:

{
  "statusCode": 403,
  "data": "{\"error\":\"invalid_grant\",\"error_description\":\"Invalid authorization code\"}"
}

I use example listed here . My code:

function(access_token, ctx, callback){
  request({
    method: 'GET',
    url: 'http://???/me',
    headers: {
      Authorization: 'Bearer ' + access_token
    }
  }, function(err, resp, body) {
      let profile = {
        user_id: '12377',
        given_name: 'Eugenio',
        family_name: 'Pace',
        email: 'eugenio@mail.com'
      };  
      callback(null, profile);
    });
}

===========================================

For my part, I see that the endpoint “http: // ??? / me” is called and gets the correct answer. Let’s check that the error occurs in “Fetch User Profile Script” in this way:

function(access_token, ctx, callback){
      request({
        method: 'GET',
        url: 'http://???/me',
        headers: {
          Authorization: 'Bearer ' + access_token
        }
      }, function(err, resp, body) {
          let profile = {
            user_id: '12377',
            given_name: 'Eugenio',
            family_name: 'Pace',
            email: 'eugenio@mail.com'
          };
    	  return callback(new Error('Works up to this point!!'));
          callback(null, profile);
        });
    }

I get Result:

{
  "error": "invalid_request",
  "error_description": "Works up to this point!!"
}

Hey. Any news about the problem?