Error: exec proxy not found for :: CordovaHttpPlugin :: get

Hello,
I created a new project and I’m trying to send GET request to backend with basic authentication.
My backend not receive any request.Every time I get error: 'Error: exec proxy not found for :: CordovaHttpPlugin :: get’
I’m testing in browser by cordova platform run browser.

Code below:

this.http.useBasicAuth('admin','password');
    return this.http.get('http://localhost:8080/awd/all', {}, {}).then(data => {
      console.log(data);
      console.log(data.status);
      console.log(data.data); // data received by server
    })
      .catch(error => {
        console.log(error.status);
        console.log(error.error); // error message as string
        console.log(error.headers);
      });

cli packages: (C:\Users\Paweł\AppData\Roaming\npm\node_modules)

    @ionic/cli-utils  : 1.18.0
    ionic (Ionic CLI) : 3.18.0

global packages:

    cordova (Cordova CLI) : 7.1.0

local packages:

    @ionic/app-scripts : 3.1.0
    Cordova Platforms  : android 6.3.0 browser 5.0.1
    Ionic Framework    : ionic-angular 3.9.2

System:

    Android SDK Tools : 26.1.1
    Node              : v6.11.2
    npm               : 3.10.10 
    OS                : Windows 10

Environment Variables:

    ANDROID_HOME : C:\androidsdk

Misc:

    backend : pro

can you have solution for this question

how can i test my get api url on local system

did you find the solution for this? i’m having kind of the same problem, you can check it out here Error: exec proxy not found for :: CordovaHttpPlugin :: post

Yes. You can’t use CordovaHttpPlugin if you wanna send http requests by web browser like chrome or firefox etc… You can only check this on your devices.

1 Like

then what if I need something for all platforms? I just realized that the official doc is stating that

https://ionicframework.com/docs/native/http/#platforms. I really find it hard to accept it.