Commit aea36e1a authored by Artem Kondra's avatar Artem Kondra Committed by Aleksey Zubenko
Browse files

Issue #3221679: Access token refresh not work correctly

parent 4bb212dc
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -183,8 +183,9 @@ class RestManager {
    $uri = implode('?', [$uri, $params]);

    try {
      $request = $this->httpClient->get($uri);
      // Try to avoid expired access token error.
      $this->refreshAccessToken();
      $request = $this->httpClient->get($uri);
      return Json::decode($request->getBody());
    }
    catch (ClientException $e) {