test a network error should trigger an error
dealing with errors documentation