problem/motivation

I get following error while working on 8.x-2.2-dev version.

Google_Auth_Exception: Error fetching OAuth2 access token, message: 'invalid_grant: Code was already redeemed.' in Google_Auth_OAuth2->authenticate() (line 125 of vendor/google/apiclient/src/Google/Auth/OAuth2.php)

Comments

hesnvabr created an issue. See original summary.

pbosmans’s picture

I've the same issue here. It only appears initial on directories in your GDrive.
Every directory URL-link has a "code" query-parameter.
Remove this paramater from the URL and the problem is gone.

pbosmans’s picture

StatusFileSize
new1.44 KB

I've created a patch to solve this problem.
This by removing the 'code' query parameter from the links on the initial GDrive page with the OutboundProcessor.

davps’s picture

StatusFileSize
new785 bytes

@pbosmans try this patch.

pbosmans’s picture

@david.pashaev this solves the problem too and it looks much better then mine. Thx.

davps’s picture

Status: Active » Needs review