Remove whitespace.
Test sendRequest error is handled.