Title: Dan's Replies | WordPress.org

---

# Dan

  [  ](https://wordpress.org/support/users/danrwalker/)

 *   [Profile](https://wordpress.org/support/users/danrwalker/)
 *   [Topics Started](https://wordpress.org/support/users/danrwalker/topics/)
 *   [Replies Created](https://wordpress.org/support/users/danrwalker/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/danrwalker/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/danrwalker/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/danrwalker/engagements/)
 *   [Favorites](https://wordpress.org/support/users/danrwalker/favorites/)

 Search replies:

## Forum Replies Created

Viewing 1 replies (of 1 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Mailchimp for WooCommerce] Fatal Error when connecting an account](https://wordpress.org/support/topic/fatal-error-when-connecting-an-account/)
 *  Thread Starter [Dan](https://wordpress.org/support/users/danrwalker/)
 * (@danrwalker)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/fatal-error-when-connecting-an-account/#post-14096120)
 * I made a quick update to the plugin file mailchimp-for-woocommerce/admin/class-
   mailchimp-woocommerce-admin.php on line 729, I added detection for WP_Error so
   I could see what message was coming back from the remote call.
 *     ```
        $response = wp_remote_post( 'https://woocommerce.mailchimpapp.com/api/finish', $pload);
               if (!is_wp_error($response) && $response['response']['code'] == 200 ){
       			delete_site_transient('mailchimp-woocommerce-oauth-secret');
                   // save api_key? If yes, we can skip api key validation for validatePostApiKey();
                   wp_send_json_success($response);
               }
               else wp_send_json_error( $response );
       ```
   
 * I get back the following response now in the AJAX, not sure if this is helpful
   towards diagnosing the issue?
 * `{"success":false,"data":[{"code":"http_request_failed","message":"Too many redirects"}]}`

Viewing 1 replies (of 1 total)