Quantcast
Channel: Topic Tag: error | WordPress.org
Viewing all articles
Browse latest Browse all 31588

evanrose on "Fatal Error When bitly API is Down"

$
0
0

Hello,

When pointing api-ssl.bitly.com and api.bitly.com to 127.0.0.1 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.

Thanks,

Evan

http://wordpress.org/plugins/bitly/


Viewing all articles
Browse latest Browse all 31588

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>