• Resolved Antonio Augusto

    (@antonio24073)


    Hi,
    I configured all tags with success but in query monitor I’m getting this:

    GET	https://www.googleapis.com/oauth2/v1/tokeninfo
    ?=asddsasadas
    400 Bad Request
        CustomApi->generateAccessToken()
        /bitnami/wordpress/wp-content/plugins/enhanced-e-commerce-for-woocommerce-store/includes/setup/CustomApi.php:660
        TVC_Admin_Helper->is_refresh_token_expire()
        /bitnami/wordpress/wp-content/plugins/enhanced-e-commerce-for-woocommerce-store/admin/class-tvc-admin-helper.php:1097
        Conversios_Onboarding->__construct()
        /bitnami/wordpress/wp-content/plugins/enhanced-e-commerce-for-woocommerce-store/admin/class-conversios-onboarding.php:34
        Enhanced_Ecommerce_Google_Analytics->load_dependencies()
        /bitnami/wordpress/wp-content/plugins/enhanced-e-commerce-for-woocommerce-store/includes/class-enhanced-ecommerce-google-analytics.php:130
        Enhanced_Ecommerce_Google_Analytics->__construct()
        /bitnami/wordpress/wp-content/plugins/enhanced-e-commerce-for-woocommerce-store/includes/class-enhanced-ecommerce-google-analytics.php:76
        run_enhanced_ecommerce_google_analytics()
        /bitnami/wordpress/wp-content/plugins/enhanced-e-commerce-for-woocommerce-store/enhanced-ecommerce-google-analytics.php:105

    I changed the token for security purposes.
    Best regards.

Viewing 14 replies - 1 through 14 (of 14 total)
  • Plugin Author Conversios

    (@tatvic)

    Hi @antonio24073 ,

    Thank you for creating this thread.

    Could you please help us with the store URL to get this checked

    Thread Starter Antonio Augusto

    (@antonio24073)

    promophone.com.br

    Plugin Support sarathkumarrajendran

    (@sarathkumarrajendran)

    Hi @antonio24073 ,

    Thank you for sharing the website.

    The APIs that were shared earlier – we have tried accessing it from our end and it is working as expected.

    Can you pls reauthorize the first step of the plugin installation and try completing it to see if it goes through and kindly let us know?

    i’m getting the same error on QueryMonitor

    Plugin Support sarathkumarrajendran

    (@sarathkumarrajendran)

    Hi @babobo

    Could you please help to check the robot.txt file if it is blocking the google domains?

    My robots.txt

    User-agent: *
    Disallow: /wp-admin/
    Allow: /wp-admin/admin-ajax.php
    
    Sitemap: https://papelariarainha.com.br/sitemap_index.xml
    Thread Starter Antonio Augusto

    (@antonio24073)

    My robots:

    # This file is automatically added by Rank Math SEO plugin to help a website index better
    # More info: https://s.rankmath.com/home
    User-Agent: *
    Disallow: /wp-admin/
    Allow: /wp-admin/admin-ajax.php
    
    Sitemap: https://promophone.com.br/sitemap_index.xml
    

    there are other api calls to google like www.googleapis.com/oauth2/v4/token 200 OK. I think it isn’t block.

    I reauthorized the connections and the same problem.

    Thread Starter Antonio Augusto

    (@antonio24073)

    Oi @babobo, sou br tb se quiser trocar uma idéia chama ai no suporte do meu site. se n?o quiser ou n?o tiver tempo td bem.

    @sarathkumarrajendran

    This error occurs here:
    Is this a problem?

    public function generateAccessToken($access_token, $refresh_token) {
          $url = "https://www.googleapis.com/oauth2/v1/tokeninfo?=" . $access_token;
          $request =  wp_remote_get(esc_url_raw($url), array("access_token" => $access_token, 'timeout' => 10000));
          $response_code = wp_remote_retrieve_response_code($request);
    
          $response_message = wp_remote_retrieve_response_message($request);
          $result = json_decode(wp_remote_retrieve_body($request));
          
          if (isset($result->error) && $result->error) {
    Thread Starter Antonio Augusto

    (@antonio24073)

    I think it was solved in 4.6.9
    Thank you.

    Thread Starter Antonio Augusto

    (@antonio24073)

    it happened again

    GET	https://www.googleapis.com/oauth2/v1/tokeninfo
    ?=long-hash	400 Bad Request	
    CustomApi->generateAccessToken()
    /bitnami/wordpress/wp-content/plugins/enhanced-e-commerce-for-woocommerce-store/includes/setup/CustomApi.php:774
    TVC_Admin_Helper->is_refresh_token_expire()
    /bitnami/wordpress/wp-content/plugins/enhanced-e-commerce-for-woocommerce-store/admin/class-tvc-admin-helper.php:1105
    Conversios_Onboarding->__construct()
    /bitnami/wordpress/wp-content/plugins/enhanced-e-commerce-for-woocommerce-store/admin/class-conversios-onboarding.php:34
    Enhanced_Ecommerce_Google_Analytics->load_dependencies()
    /bitnami/wordpress/wp-content/plugins/enhanced-e-commerce-for-woocommerce-store/includes/class-enhanced-ecommerce-google-analytics.php:128
    Enhanced_Ecommerce_Google_Analytics->__construct()
    /bitnami/wordpress/wp-content/plugins/enhanced-e-commerce-for-woocommerce-store/includes/class-enhanced-ecommerce-google-analytics.php:76
    run_enhanced_ecommerce_google_analytics()
    /bitnami/wordpress/wp-content/plugins/enhanced-e-commerce-for-woocommerce-store/enhanced-ecommerce-google-analytics.php:105
    Unknown	10000	0.0658

    Hello.

    Same problem here .

    https://www.googleapis.com/oauth2/v1/tokeninfo
    ?=

    400 Bad Request

    CustomApi->generateAccessToken()
    wp-content/plugins/enhanced-e-commerce-for-woocommerce-store/includes/setup/CustomApi.php:774
    TVC_Admin_Helper->is_refresh_token_expire()
    wp-content/plugins/enhanced-e-commerce-for-woocommerce-store/admin/class-tvc-admin-helper.php:1131
    Conversios_Onboarding->__construct()
    wp-content/plugins/enhanced-e-commerce-for-woocommerce-store/admin/class-conversios-onboarding.php:34
    Enhanced_Ecommerce_Google_Analytics->load_dependencies()
    wp-content/plugins/enhanced-e-commerce-for-woocommerce-store/includes/class-enhanced-ecommerce-google-analytics.php:128
    Enhanced_Ecommerce_Google_Analytics->__construct()
    wp-content/plugins/enhanced-e-commerce-for-woocommerce-store/includes/class-enhanced-ecommerce-google-analytics.php:76
    run_enhanced_ecommerce_google_analytics()
    wp-content/plugins/enhanced-e-commerce-for-woocommerce-store/enhanced-ecommerce-google-analytics.php:117

    but https://www.googleapis.com/oauth2/v4/token is fine .
    Regards

    Sorry if I don’t put my token for security.

    If I put complete token in chrome adress (https://www.googleapis.com/oauth2/v1/tokeninfo
    ?=ya29.a0A___blablabla ), result is :
    {
    “error”: “invalid_token”,
    “error_description”: “Either access_token, id_token, or token_handle required”
    }

    Plugin Support sriramkarthik

    (@sriramkarthik)

    @3r3ct0r,

    The screenshot shared by you is not an error it is basically the response to the status of the Auth2 token. The Auth2 token gets expired every 30 mins after which a new token gets generated. The “400 Bad request” response is displayed when the token gets expired, based on that response new token is generated.

    Please be rest assured that there will not be an impact on the website.

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘error 400 googleapis’ is closed to new replies.