More api debug logging

This call isn't needed, the http_fail function call below will close out the connection