Interesting. Didn't know SQL API can connect remotely.
public function compact(responder:Responder = null):void
It has a responder you can take advantage of to debug.
responder:Responder (default = null) — An object that designates methods to be called when the operation succeeds or fails. In asynchronous execution mode, if the responder argument is null a compact or error event is dispatched when execution completes.