I had the same problem. Disabling tor for Trusted Relays fixed it, but I think localhost should always be exempt from the tor circuit to prevent failure connecting to local relays.