假设我使用网站: redacted.com
当我正常使用网站时,它工作正常。
当我开始使用BURP套件代理来拦截请求时,我开始出现这个错误:
[2021-04-14T02:45:46.724Z] @firebase/firestore: Firestore (7.24.0): 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.
Error: Uncaught (in promise): FirebaseError: [code=unavailable]: Failed to get document because the client is offline.
请给我这个问题的解决方案。
发布于 2021-06-29 00:56:28
此问题的解决方法(source)。
对于Burp,以下匹配和替换对我有效:
this.experimentalForceLongPolling=!!t.experimentalForceLongPolling
至
this.experimentalForceLongPolling=true
这可能会因firebase-js-sdk
版本的不同而有所不同,因此最好在JS文件中查找experimentalForceLongPolling
,并确保启用它。
发布于 2021-08-21 06:32:47
使用这个故障诊断(https://github.com/firebase/firebase-js-sdk/issues/1190#)的想法,我在我的Burp Suite中进行了以下匹配和替换,并且它起作用了!
this.forceLongPolling=void 0!==t.experimentalForceLongPolling&&t.experimentalForceLongPolling
至
this.forceLongPolling=true
之前有人说过
这可能会因firebase- JS -sdk版本的不同而不同,因此最好在JS文件中查找experimentalForceLongPolling,并确保启用它。
https://stackoverflow.com/questions/67084913
复制相似问题