Title: Google_IO_Exception: Cannot connect
Last modified: August 22, 2016

---

# Google_IO_Exception: Cannot connect

 *  [racanu](https://wordpress.org/support/users/racanu/)
 * (@racanu)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/google_io_exception-cannot-connect/)
 * After having authorized the plugin, I keep getting the error below.
    If I fetch
   the URL, it contains “error 401” and “Login required”. What else am I supposed
   to configure in the plugin to make it work?
 * I keep getting this error after having authorized the plugin:
 * exception ‘Google_IO_Exception’ with message ‘HTTP Error: Unable to connect: ‘
   fopen(compress.zlib://https://www.googleapis.com/analytics/v3/management/accounts/%
   7Eall/webproperties/%7Eall/profiles?key=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx)[
   [function.fopen](https://wordpress.org/support/topic/google_io_exception-cannot-connect/function.fopen?output_format=md)]:
   failed to open stream: operation failed” in D:\Inetpub\webs\xxxxx\wordpress\wp-
   content\plugins\google-analytics-dashboard-for-wp\tools\src\Google\IO\Stream.
   php:99
    Stack trace: #0 D:\Inetpub\webs\xxxxx\wordpress\wp-content\plugins\google-
   analytics-dashboard-for-wp\tools\src\Google\IO\Abstract.php(130): Google_IO_Stream-
   >executeRequest(Object(Google_Http_Request)) #1 D:\Inetpub\webs\xxxxx\wordpress\
   wp-content\plugins\google-analytics-dashboard-for-wp\tools\src\Google\Http\REST.
   php(39): Google_IO_Abstract->makeRequest(Object(Google_Http_Request)) #2 D:\Inetpub\
   webs\xxxxx\wordpress\wp-content\plugins\google-analytics-dashboard-for-wp\tools\
   src\Google\Client.php(617): Google_Http_REST::execute(Object(Google_Client), 
   Object(Google_Http_Request)) #3 D:\Inetpub\webs\xxxxx\wordpress\wp-content\plugins\
   google-analytics-dashboard-for-wp\tools\src\Google\Service\Resource.php(220):
   Google_Client->execute(Object(Google_Http_Request)) #4 D:\Inetpub\webs\xxxxx\
   wordpress\wp-content\plugins\google-analytics-dashboard-for-wp\tools\src\Google\
   Service\Analytics.php(3376): Google_Service_Resource->call(‘list’, Array, ‘Google_Service_…’)#
   5 D:\Inetpub\webs\xxxxx\wordpress\wp-content\plugins\google-analytics-dashboard-
   for-wp\tools\gapi.php(161): Google_Service_Analytics_ManagementProfiles_Resource-
   >listManagementProfiles(‘~all’, ‘~all’) #6 D:\Inetpub\webs\xxxxx\wordpress\wp-
   content\plugins\google-analytics-dashboard-for-wp\admin\settings.php(859): GADASH_GAPI-
   >refresh_profiles() #7 [internal function]: GADASH_Settings::general_settings(”)#
   8 D:\Inetpub\webs\xxxxx\wordpress\wp-includes\plugin.php(496): call_user_func_array(
   Array, Array) #9 D:\Inetpub\webs\xxxxx\wordpress\wp-admin\admin.php(212): do_action(‘
   toplevel_page_g…’) #10 {main}
 * [https://wordpress.org/plugins/google-analytics-dashboard-for-wp/](https://wordpress.org/plugins/google-analytics-dashboard-for-wp/)

Viewing 1 replies (of 1 total)

 *  [Alin Marcu](https://wordpress.org/support/users/deconf/)
 * (@deconf)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/google_io_exception-cannot-connect/#post-5947496)
 * See minimum requirements: [https://deconf.com/error-codes-in-google-analytics-dashboard-for-wordpress/](https://deconf.com/error-codes-in-google-analytics-dashboard-for-wordpress/)
 * You basically need PHP cURL (recommended) or fopen, and of course outgoing connections.
 * You should talk with your hosting provider about these. Usually PHP cURL and 
   outgoing connections are available or/and enabled at all major hosting providers.

Viewing 1 replies (of 1 total)

The topic ‘Google_IO_Exception: Cannot connect’ is closed to new replies.

 * ![](https://ps.w.org/google-analytics-dashboard-for-wp/assets/icon.svg?rev=2243225)
 * [ExactMetrics - Google Analytics Dashboard for WordPress (Website Stats Plugin)](https://wordpress.org/plugins/google-analytics-dashboard-for-wp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/google-analytics-dashboard-for-wp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/google-analytics-dashboard-for-wp/)
 * [Active Topics](https://wordpress.org/support/plugin/google-analytics-dashboard-for-wp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/google-analytics-dashboard-for-wp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/google-analytics-dashboard-for-wp/reviews/)

## Tags

 * [login](https://wordpress.org/support/topic-tag/login/)

 * 1 reply
 * 2 participants
 * Last reply from: [Alin Marcu](https://wordpress.org/support/users/deconf/)
 * Last activity: [11 years, 3 months ago](https://wordpress.org/support/topic/google_io_exception-cannot-connect/#post-5947496)
 * Status: not resolved