Official Bitly for WordPress
Fatal Error When bitly API is Down (2 posts)

  1. evanrose
    Posted 1 year ago #


    When pointing api-ssl.bitly.com and api.bitly.com to to simulate the bitly API being down and then attempting to write a post, I get:

    Fatal error: Uncaught exception 'BitlyServiceError' with message 'couldn't connect to host' in /wp-content/plugins/bitly/lib/BitlyService.php:294 followed by a stack trace.

    I would expect that the plugin would fail silently and simply not create the bit.ly URL in the post_meta table, for which I test in my code. Can you provide a fix, or, if I'm testing this incorrectly, let me know how to test correctly.




  2. ljg3
    Posted 1 year ago #

    This also occurs if you bump into your API rate limit, which is a deal breaker, as it can unexpectedly take the site down.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Official Bitly for WordPress
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic