Object code: "rest_no_route" data: {status: 404} message: "No route was found matching the URL and request method" __proto__: Object

Hy All friends when I run my ionic project after opening I get this error
Failed to load resource: the server responded with a status of 404 (Not Found)
And also this: 1.
Object

  1. code: “rest_no_route”
  2. data: {status: 404}
  3. message: “No route was found matching the URL and request method”
  4. proto: Object

    Can someone help me???

Whats your Router.forRoot routes ?

I am working in ionic:
this is my code you can saw:
import { Component } from ‘@angular/core’;
import { NavController } from ‘ionic-angular’;
import * as HA from ‘woocommerce-api’;

@Component({
selector: ‘page-home’,
templateUrl: ‘home.html’
})
export class HomePage {

Woocommerce: any;

constructor(public navCtrl: NavController) {
this.Woocommerce = HA({
url: “http://localhost/leaning/wp-json/wc/v3/”,
consumerKey: “HereismyKEY”,
consumerSecret: HereismyKEY"
});
this.Woocommerce.getAsync(“Products”).then( (data) => {
console.log(JSON.parse(data.body));
},(err) => {
console.log(err);
})
}

}

Looks like the service does not exist on the URL specified…have you tried testing the url from outside ionic ?

Yes I was test this in (Postman)


You can see