Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught TypeError in Firestore Emulator UI Requests Tab: Cannot read properties of undefined (reading 'method') #1015

Open
JonahWhoDis opened this issue Feb 8, 2024 · 1 comment

Comments

@JonahWhoDis
Copy link

JonahWhoDis commented Feb 8, 2024

Describe the bug
When accessing the Firestore Emulator UI's Requests tab at http://127.0.0.1:4000/firestore/requests, the page fails to load and displays a blank screen. The browser console shows an error: Uncaught TypeError: Cannot read properties of undefined (reading 'method') originating from react-dom.production.min.js and specifically within a component named TableRow.tsx.

To Reproduce
Steps to reproduce the behavior:
Remark: It only happens sometimes.

  1. Start the Firebase Emulator Suite with Firestore enabled.
  2. Open a web browser and navigate to the Firestore Emulator UI at http://127.0.0.1:4000/firestore.
  3. Click on the 'Requests' tab to view Firestore requests.
  4. Observe that the page does not load and instead displays a blank screen. The browser's developer console shows the mentioned TypeError.

Expected behavior
The 'Requests' tab should properly display the list of Firestore requests made by the application without any errors, allowing for debugging and monitoring of interactions with the Firestore emulator.

Screenshots
is attached
Screenshot 2024-02-08 at 12 17 28

Desktop (please complete the following information):

  • OS: Mac OS (14.1.1 (23B81))
  • Browser Chrome
  • Version Version 121.0.6167.85 (Official Build) (arm64)

Additional context
The issue persists even after updating Firebase tools to the latest version. It occurs across multiple browsers, indicating it's not browser-specific. Clearing browser cache and data does not resolve the issue. The error suggests a possible issue with the Emulator UI's handling of undefined properties in the Firestore requests display logic.

@mattiadevivo
Copy link

mattiadevivo commented May 16, 2024

Hi @JonahWhoDis , I was experiencing the same problem.

In my case I used a Debian devcontainer with firebase-tools and openjdk-17-jre installed, I figured it out that some ERR_CONNECTION_REFUSED where appearing in the Firestore UI, as soon as I forwarded the 9150 port it started working properly, so my advice is to check whether the port is occupied by another process.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants