Issue Resolved by using manual proxy
I changed the proxy settings to use manual proxy instead of system proxy and it works now correctly. Hopefully error message can be improved if the update step can not determine the correct proxy server.