I am using firebase library for appscript Firebase for appscript
It was working successfully in the web app which I deployed using appscript itself for last two months. Suddenly since last few days, it is not working and showing this error

There were no logical errors in code, as I saw it happening myself while debugging recently. For example these two lines I ran separately. It gave error first, then worked after few minutes later.
var firebaseUrl = "https://[myfirebaseurl]/";
var base = FirebaseApp.getDatabaseByUrl(firebaseUrl, '[secret]');
I tried other authenticating measures like auth, but that too behaved similarly. Moreover while it was showing server error inside v8 runtime environment, I tried accessing database using a different python script and it worked smoothly. What could be the problem?