【发布时间】:2017-01-24 03:38:52
【问题描述】:
第一次调用 firebase 非常慢 > 10 秒,并且发生了一些网络错误。我分叉了 repo 以重现该问题:https://github.com/frankpolkm/ionic-conference-app
它只是将 firebase 添加到了driftyco/ionic-conference-app 演示应用中。请查看https://github.com/frankpolkm/ionic-conference-app/blob/master/app/app.ts中的代码更改
这是控制台日志。添加firebase之前没有网络错误。
0 104436 log DEVICE READY FIRED AFTER, 1308, ms
1 104725 log Angular 2 is running in the development mode. Call enableProdMode() to enable the production mode.
2 104842 time signInAnonymously
3 105151 debug swiper initEvents, attach
4 109567 warn Google Maps API warning: NoApiKeys https://developers.google.com/maps/documentation/javascript/error-messages#no-api-keys
5 109568 warn Google Maps API warning: SensorNotRequired https://developers.google.com/maps/documentation/javascript/error-messages#sensor-not-required
6 110230 error Error: Network Error, http://192.168.2.103:8100/build/js/zone.js, Line: 260
7 110230 error Error: A network error (such as timeout, interrupted connection or unreachable host) has occurred., http://192.168.2.103:8100/build/js/zone.js, Line: 260
8 115416 timeEnd signInAnonymously
9 115416 log signInAnonymously: 10574ms
10 115416 log uid=mZevh2GdnyaNv1BSfnB78HC17di2
11 120419 error Error: Network Error, http://192.168.2.103:8100/build/js/zone.js, Line: 260
12 120420 error Error: A network error (such as timeout, interrupted connection or unreachable host) has occurred., http://192.168.2.103:8100/build/js/zone.js, Line: 260
请让我知道我做错了什么。
谢谢, 弗兰克
【问题讨论】: