Added tracing to the api controller so I can see what exceptions are being thrown.