firebase-tools: Firestore requests tab in emulator not working with v11.12.0

Environment info

firebase-tools: v11.12.0

Platform:. Mac

Test case

(1) Create a minimal project that uses Firestore (2) Instrument your app to work with the emulators, as the docs show (3) Install the Firebase Tools CLI, then run the emulators with this command: firebase emulators:start --import=./emulator-data --export-on-exit

(note that the data import and export and optional but I included them since that’s what I’m doing).

Steps to reproduce

In the emulator UI, navigate to the Firestore page, then click the Requests tab.

Note: The Firestore page itself is working fine for me, just not the Requests tab.

Expected behavior

The requests tab in the emulator under Firestore to function as expected (instead of saying I need to upgrade the Firebase CLI).

Actual behavior

The requests tab says I need to upgrade the Firebase CLI to the latest version (which I have). image

As requested, I ran the emulators with the --debug flag to check those logs. Here’s some of the outputs that printed out multiple times:

INFO: Detected non-HTTP/2 connection.
 {"metadata":{"emulator":{"name":"firestore"},"message":"Sep 30, 2022 12:13:58 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead\nINFO: Detected non-HTTP/2 connection.\n"}}
[2022-09-30T16:13:58.742Z] Sep 30, 2022 12:13:58 PM com.google.cloud.datastore.emulator.firestore.webchannel.FirestoreV1WebChannelAdapter$FirestoreListenHandler onClose
INFO: channel closed
 {"metadata":{"emulator":{"name":"firestore"},"message":"Sep 30, 2022 12:13:58 PM com.google.cloud.datastore.emulator.firestore.webchannel.FirestoreV1WebChannelAdapter$FirestoreListenHandler onClose\nINFO: channel closed\n"}}
[2022-09-30T16:14:00.377Z] Sep 30, 2022 12:14:00 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead
INFO: Detected non-HTTP/2 connection.
 {"metadata":{"emulator":{"name":"firestore"},"message":"Sep 30, 2022 12:14:00 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead\nINFO: Detected non-HTTP/2 connection.\n"}}
[2022-09-30T16:14:00.380Z] Sep 30, 2022 12:14:00 PM io.gapi.emulators.netty.NotFoundHandler handleRequest
INFO: Unknown request URI: /ws/discovery
 {"metadata":{"emulator":{"name":"firestore"},"message":"Sep 30, 2022 12:14:00 PM io.gapi.emulators.netty.NotFoundHandler handleRequest\nINFO: Unknown request URI: /ws/discovery\n"}}
[2022-09-30T16:14:00.391Z] Sep 30, 2022 12:14:00 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 4
  • Comments: 15 (5 by maintainers)

Most upvoted comments

Same issue occurring with v11.13

Fixed in CLI v11.14.1. Thanks everyone for the help!

same here

@shun77768 The /ws/discovery error message is a known log spam that we’ll clean up shortly, but we believe that should not affect your ability to connect to the Firestore emulator since v11.14.1. If you’re having trouble reaching the Firestore emulator from your app, that is an unrelated issue – please open a new issue with the details and we can help you there.