-
Notifications
You must be signed in to change notification settings - Fork 50
Open
Description
I had an issue where the query params did not seems to be included into the GET request. I found out that, when the token was expired, a retry was done after a token refresh. Upon this retry, the $rawData variable was not passed to the call method.
In the file : /src/Client.php at line 200
} catch (ClientException $e) {
// Retry?
if ($e->getCode() === 401 && ! $this->retriedRefresh) {
$this->oAuthClient->refreshAccessToken();
$this->retriedRefresh = true;
return $this->call($uri, $method, $data);
}
throw $e;
}The fix is
} catch (ClientException $e) {
// Retry?
if ($e->getCode() === 401 && ! $this->retriedRefresh) {
$this->oAuthClient->refreshAccessToken();
$this->retriedRefresh = true;
return $this->call($uri, $method, $data, $rawData);
}
throw $e;
}Metadata
Metadata
Assignees
Labels
No labels