FIREBASE警告:用户回调引发了异常。进入某些浏览器出错

时间:2017-07-26 12:23:02

标签: javascript firebase firebase-realtime-database firebase-authentication

我正在使用firebase数据库开发Web应用程序。我在某些浏览器中从firebase获取数据,比如windows中的firefox。当我在基于chrome或linux的操作系统中运行时,它会显示错误。我无法理解错误。

var config = {
    apiKey: "AIzaSyCZnHshgjfhgvjgvnvghjgjhghggh",
    authDomain: "example.firebaseapp.com",
    databaseURL: "https://example.firebaseio.com",
    projectId: "example-10aea",
    storageBucket: "example-10aea.appspot.com",
    messagingSenderId: "1234567899876"
  };
  firebase.initializeApp(config);
  
   firebase.database().ref().on('value', function(snapshot) {
	console.log(snapshot.val());
  });

Error : 

FIREBASE WARNING: Exception was thrown by user callback. @http://192.168.0.17:8080/ivinapp/viewmobiletrackingPage:134:13
g.Tb/<@https://www.gstatic.com/firebasejs/4.1.3/firebase.js:468:829
fc@https://www.gstatic.com/firebasejs/4.1.3/firebase.js:332:165
bf@https://www.gstatic.com/firebasejs/4.1.3/firebase.js:397:215
cf@https://www.gstatic.com/firebasejs/4.1.3/firebase.js:396:403
g.Gb@https://www.gstatic.com/firebasejs/4.1.3/firebase.js:487:287
g.wd@https://www.gstatic.com/firebasejs/4.1.3/firebase.js:451:246
og.prototype.wd@https://www.gstatic.com/firebasejs/4.1.3/firebase.js:441:359
qg/<@https://www.gstatic.com/firebasejs/4.1.3/firebase.js:439:279
ag@https://www.gstatic.com/firebasejs/4.1.3/firebase.js:423:462
Yf.prototype.open/this.Ia.onmessage@https://www.gstatic.com/firebasejs/4.1.3/firebase.js:422:245

0 个答案:

没有答案