我正在使用Firebase运行我的应用程序的后端。当我执行NODE_ENV=debug firebase emulators:start --inspect-functions时,它只说
i emulators: Starting emulators: auth, functions
i emulators: Shutting down emulators.
i hub: Stopping emulator hub
Error: TIMEOUT: Port 4400 on 127.0.0.1 was not active within 60000ms(超时是在60万is之后,因为它没有收到任何请求)
在模拟器启动后,我向http://localhost:5001发送一个请求,但它没有连接。
有什么问题吗?
发布于 2022-07-18 22:04:13
这可能与本期有关。解决办法是指定本地主机地址(例如。127.0.0.1),而不是localhost,并在firebase.json中添加一个主机属性,其中还有127.0.0.1。
https://github.com/firebase/firebase-tools/issues/2379#issuecomment-972852609
示例:
"firestore": {
"port": 8080,
"host": "127.0.0.1"
},https://stackoverflow.com/questions/72315312
复制相似问题