During Firebase shutdown there is a way to simulate this by running local code

During shutdown of firebase, my application had a very bad experience with things that simply did not load. Is there a way to run some local code to simulate this experience so that my application does not crash or burn during the next shutdown? I am currently using the javascript SDK.

Errors from the app

+4
source share
1 answer

I was able to reproduce the results quite easily by adding overrides to the socket connectors in the / etc / hosts file

127.1.1.1 s-usc1c-nss-215.firebaseio.com
127.1.1.1 s-usc1c-nss-222.firebaseio.com

You can pull this location from your WS network tab in chrome to see what needs to be rewritten enter image description here

+2

Source: https://habr.com/ru/post/1684777/


All Articles