Error refreshing the OAuth2 token
-
I have recently switched over several dozen sites from GADWP to GAinWP, but after the sites have been connected for approximately one week they are all giving the following error. Is there something I can do to avoid this issue?
Something similar happened with the GADWP plugin on occasion – I had to reauthorize individual sites every once in a great while and didn’t think much of it – but this is happening to every site, about 6-8 days after I initially installed the plugin.
Last Error: 2020-02-28 16:37:08: Deconfin_Auth_Exception: Error refreshing the OAuth2 token, message: '{ "error": "invalid_grant", "error_description": "Bad Request" }' in /home/redacted/public_html/wp-content/plugins/ga-in/tools/src/Deconfin/Auth/OAuth2.php:364 Stack trace: #0 /home/redacted/public_html/wp-content/plugins/ga-in/tools/src/Deconfin/Auth/OAuth2.php(278): Deconfin_Auth_OAuth2->refreshTokenRequest(Array) #1 /home/redacted/public_html/wp-content/plugins/ga-in/tools/src/Deconfin/Auth/OAuth2.php(252): Deconfin_Auth_OAuth2->refreshToken('1//0fHUHl8rcG50...') #2 /home/redacted/public_html/wp-content/plugins/ga-in/tools/src/Deconfin/Service/Resource.php(217): Deconfin_Auth_OAuth2->sign(Object(Deconfin_Http_Request)) #3 /home/redacted/public_html/wp-content/plugins/ga-in/tools/src/Deconfin/Service/Analytics.php(2052): Deconfin_Service_Resource->call('get', Array, 'Deconfin_Servic...') #4 /home/redacted/public_html/wp-content/plugins/ga-in/tools/gapi.php(361): Deconfin_Service_Analytics_DataGa_Resource->get('ga:90736059', '30daysAgo', 'yesterday', 'ga:sessions,ga:...', Array) #5 /home/redacted/public_html/wp-content/plugins/ga-in/tools/gapi.php(515): GAINWP_GAPI_Controller->handle_corereports('90736059', '30daysAgo', 'yesterday', 'ga:sessions,ga:...', Array, 'qr3_3142446603') #6 /home/redacted/public_html/wp-content/plugins/ga-in/tools/gapi.php(953): GAINWP_GAPI_Controller->get_bottomstats('90736059', '30daysAgo', 'yesterday', false) #7 /home/redacted/public_html/wp-content/plugins/ga-in/admin/ajax-actions.php(116): GAINWP_GAPI_Controller->get('90736059', 'bottomstats', '30daysAgo', 'yesterday', false, 'sessions') #8 /home/redacted/public_html/wp-includes/class-wp-hook.php(288): GAINWP_Backend_Ajax->ajax_item_reports('') #9 /home/redacted/public_html/wp-includes/class-wp-hook.php(312): WP_Hook->apply_filters('', Array) #10 /home/redacted/public_html/wp-includes/plugin.php(478): WP_Hook->do_action(Array) #11 /home/redacted/public_html/wp-admin/admin-ajax.php(175): do_action('wp_ajax_gainwp_...') #12 {main}
- The topic ‘Error refreshing the OAuth2 token’ is closed to new replies.