Making sure it uses the configured endpoint.