Can't Access Token

Here is the error I am getting. Does anyone know what could be the issue?

Fatal error : Uncaught GuzzleHttp\Exception\ClientException: Client error: POST https://api.infusionsoft.com/token resulted in a 400 Bad Request response: {“error”:“invalid_grant”,“error_description”:“Authorization code is invalid”} in /home/iflipinv/public_html/wp-content/plugins/infusionsoft-integration/inc/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php:113 Stack trace: #0 /home/iflipinv/public_html/wp-content/plugins/infusionsoft-integration/inc/vendor/guzzlehttp/guzzle/src/Middleware.php(66): GuzzleHttp\Exception\RequestException::create(Object(GuzzleHttp\Psr7\Request), Object(GuzzleHttp\Psr7\Response)) #1 /home/iflipinv/public_html/wp-content/plugins/infusionsoft-integration/inc/vendor/guzzlehttp/promises/src/Promise.php(203): GuzzleHttp\Middleware::GuzzleHttp{closure}(Object(GuzzleHttp\Psr7\Response)) #2 /home/iflipinv/public_html/wp-content/plugins/infusionsoft-integration/inc/vendor/guzzlehttp/promises/src/Promise.php(156): GuzzleHttp\Promise\Promise::callHandler(1, Object(GuzzleHttp\Psr7\Respons in /home/iflipinv/public_html/wp-content/plugins/infusionsoft-integration/inc/vendor/infusionsoft/php-sdk/src/Infusionsoft/Http/GuzzleHttpClient.php on line 74

It looks like the auth code is invalid. Are you possibly re-using one that was obtained from a previous authorization that is no longer valid?

No, we just created an application today with a new API key.

It actually just worked. We didn’t change anything. We just kept trying about 10 times with new Incognito windows, and it eventually just worked.

If you see an error like that again I would double check that you’re using the authorization code that was just generated by the user rather than a cached one or something like that.