Rather non descriptive and annoying error when setting up a 1000v for the first time. You can also see the “HTTP/1.1 400 Bad Request” along with the error message.
You are connecting to a ESX server and no the vCenter server.
Change the port in vCenter to port 80.
‘Administration -> vCenter Server Settings -> Ports’
Point it to the correct vCenter server.