You can pass an error handler to your subscribe call:
this.af.database.object('/someLocation/abc').subscribe(
obj => {
// logic
},
error => {
// handle/report the error
}
);
This should remove an unhandled errors/rejected promises from the console, but it's likely that Firebase will still report warnings there.
Also, you should be aware that when observables error, any subscribers are automatically unsubscribed. So if you get an error, that's it; no further values will be emitted.
An alternative to specifying the error handler in subscribe, if you are composing an observable chain, is to use the catch operator:
import { Observable } from 'rxjs/Observable';
import 'rxjs/add/observable/of';
import 'rxjs/add/operator/catch';
let abc$ = this.af.database
.object('/someLocation/abc')
.catch(error => {
// handle the error
// and return an appropriate observable if you have one
// perhaps a default value or an empty observable, etc.
// or rethrow the error
// or return Observable.throw(new Error('Some error'))
return Observable.of("some-default-value");
});