简体   繁体   中英

AppEngine app stops updating Firebase without error

I have an AppEngine app that manipulates a Firebase DB through AppEngine cron .

Everything works well, except that after 24 hours the app stops writing to Firebase. Without any discernible error.

You can find my code on GitHub

The database object is initialized during each servlet initialization here . The database call that seems to fail is here , which is called from here on the main servlet thread.

Any help would be greatly appreciated.

You're using an extremely old, deprecated version of the Firebase java client SDK:

compile 'com.firebase:firebase-client-jvm:2.5.2'

You should be using the Firebase Admin SDK instead, which fixes known issues when running the Firebase SDK in App Engine.

compile 'com.google.firebase:firebase-admin:5.3.1'

Some APIs have changed, so you will need to adapt to them.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM