firebase-admin-node icon indicating copy to clipboard operation
firebase-admin-node copied to clipboard

Realtime Database Stuck

Open mr-zxy opened this issue 3 years ago • 4 comments

When I use firebase realtime database data, I use set to add data, but I can't add it all the time. The Promise object can be printed out and returned, but. Then and. Catch never return data. Do you have any ideas to help analyze? There is no problem with curd when using firestore database.

mr-zxy avatar Oct 29 '21 03:10 mr-zxy

I found a few problems with this issue:

  • I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.
  • This issue does not seem to follow the issue template. Make sure you provide all the required information.

google-oss-bot avatar Oct 29 '21 03:10 google-oss-bot

Hello! Thanks for filing this issue. We won't be able to help unless you can provide us with logs or a reproduction though. Is that something you can do?

schmidt-sebastian avatar Oct 30 '21 02:10 schmidt-sebastian

Hi @schmidt-sebastian, we're also seeing calls to realtime DB hang when using with the emulator. We're using firebase-admin 10.0.0 and firebase-tools 9.23.0.

The RDB emulator is running, and function triggers are working correctly. However reads from our testsuite to RDB using firbease-admin hang. We've enabled logging and are seeing the error:


console.log
    p:0: Making a connection attempt

      at log (node_modules/@firebase/database/dist/index.standalone.js:313:9)

  console.log
    getToken() completed. Creating connection.

      at log (node_modules/@firebase/database/dist/index.standalone.js:313:9)

  console.log
    c:0:9: Connection created

      at log (node_modules/@firebase/database/dist/index.standalone.js:313:9)

  console.log
    c:0:9:0 Websocket connecting to ws://localhost:9000/.ws?v=5&ns=

      at log (node_modules/@firebase/database/dist/index.standalone.js:313:9)

  console.log
    c:0:9:0 WebSocket error.  Closing connection.

      at log (node_modules/@firebase/database/dist/index.standalone.js:313:9)

  console.log
    c:0:9:0 Error during WebSocket handshake: Unexpected response code: 403

      at log (node_modules/@firebase/database/dist/index.standalone.js:313:9)

  console.log
    c:0:9:0 WebSocket is closing itself

      at log (node_modules/@firebase/database/dist/index.standalone.js:313:9)

  console.log
    c:0:9: Realtime connection failed.

      at log (node_modules/@firebase/database/dist/index.standalone.js:313:9)

  console.log
    c:0:9: Closing realtime connection.

      at log (node_modules/@firebase/database/dist/index.standalone.js:313:9)

  console.log
    c:0:9: Shutting down all connections

      at log (node_modules/@firebase/database/dist/index.standalone.js:313:9)

  console.log
    p:0: data client disconnected

      at log (node_modules/@firebase/database/dist/index.standalone.js:313:9)

  console.log
    p:0: Trying to reconnect in 1284.6646720609474ms

      at log (node_modules/@firebase/database/dist/index.standalone.js:313:9)

Hope that helps, let me know if you need more info.

milo- avatar Nov 23 '21 11:11 milo-

@jsdt Can you take a look?

schmidt-sebastian avatar Nov 29 '21 22:11 schmidt-sebastian

Closing due to inactivity

lahirumaramba avatar Jan 17 '23 20:01 lahirumaramba