Avoiding bluebird warning in Aurelia1

Hi,

I’m making a call to an endpoint where I don’t care about the response, nor do I want to block. . At times this endpoint returns an error, ie non 2xx, but 4xx. I don’t care, but bluebird does. Is there a way to actually get rid of those warnings without turning them all off? My code is pretty much:

import { HttpClient } from “aurelia-fetch-client”;
api.fetch(“https://httpbin.org/status/400”, { method: ‘POST’});

I’ve tried to have it inside try, adding .then/catch/finally, I’ve configured my client with interceptors. And now I’m at the end of the rope. I just want this to asynchronously call the endpoint without polluting the console.

I’m using 1.8.2 of the fetch client and 1.4.1 of the framework.

You could try this:

const _ = api.fetch(“https://httpbin.org/status/400”, { method: ‘POST’});
1 Like

That seems to do the trick! Thanks a lot!