pingback_request can be nil (responses for request_cgi can be nil). I recommend always check for nil in responses before accessing methods and property (like body) and operating on them.

BTW: the pingback_request name variable is confusing because the get_pingback_request is going to return a response.