normalize setBaseUrl to ensure trailing / in all cases
provide a useful message on raw curl errors