Ionic auth trying to set unsafe headers

I’m trying to call the login() of Auth from @ionic/cloud-angular and I get these 3 errors.

data = {
  "email": "",
  "password": ""
};
this.auth.login("basic", this.data).then(() => {
    console.log('success');
}, (err)=> {
    console.log('err');
    console.log('failure');
});

the data object is filled from the login form.

///output
Refused to set unsafe header "accept-encoding"
Refused to set unsafe header "user-agent"
Refused to set unsafe header "content-length"
TypeError: res.setEncoding is not a function
failure

what could be causing this refusal to set the headers?
and the missing setEncoding function?

Looks to be getting called from the superagent module