Exception handling for recent posts API call.