0x00 背景
firebase/firestoreの診断を行う時に、burpを使うと、下記のようなtimeoutエラーが出る。これの解決法をここにまとめる。
[2021-11-04T09:18:26.044Z] @firebase/firestore: Firestore (7.6.2): Could not reach Cloud Firestore backend. Backend didn't respond within 10 seconds.
This typically indicates that your device does not have a healthy Internet connection at the moment. The client will operate in offline mode until it is able to successfully connect to the backend.
0x01 解決方法
breakpointをしかけて、forceLongPolling を trueにする。
具体的に、chromeのdevtoolでxxx.chunk.jsを開いて、 this.forceLongPolling
を見つけ、この行(36472)にbreakpointを仕掛ける。この行の実行が終わったら、forceLongPolling
の値をtrueにして実行を続ける。