question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

firebase:shell dumps function definition object to console

See original GitHub issue

[REQUIRED] Environment info

firebase-tools: 7.1.1 firebase-admin: 8.2.0 firebase-functions: 3.1.0 node: 8.15.0 Linux

[REQUIRED] Test case

Testing a function in the shell console cause a pretty big Object looking like a definition of all functions to be dumped in the console. This seems to be only happening after a threshold (either number of functions or volume of code).

console.info messages are mixed into this dump: image

The Object looks like:


{
  "timestamp": "Fri Jul 19 2019 16:03:28 GMT+0200 (CEST)",
  "level": "SYSTEM",
  "text": "",
  "data":
  {
    "triggers":
    {
      "api":
      {
        "definition":
        {
          "httpsTrigger":
          {},
          "name": "api",
          "entryPoint": "api"
        },
        "module":
        {
          "appState":
          {},
          "arithmetic":
          {
            "counter":
            {},
            "average":
            {}
          },
          "delete":
          {},
          "entity":
          {
            "resource":
            {},
            "tenant":
            {},
            "program":
            {},
            "record":
            {},
            "business":
            {}
          },
          "resources":
          {
            "machine":
            {},
            "category":
            {}
          },
          "lowerCase":
          {},
          "membership":
          {},
          "user":
          {},
          "documentation":
          {},
          "schedule":
          {}
        }
      },
      "appState-userUpdateProgram":
      {
        "definition":
        {
          "eventTrigger":
          {
            "resource": "projects/_/instances/project-8476440599955222702/refs/userData/appState/{uid}/buid",
            "eventType": "providers/google.firebase.database/eventTypes/ref.write",
            "service": "firebaseio.com"
          },
          "name": "appState-userUpdateProgram",
          "entryPoint": "appState.userUpdateProgram"
        },
        "module":
        {
....

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:12 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
samtsterncommented, Jul 24, 2019

This fix has been released in 7.2.0

0reactions
samtsterncommented, Jul 19, 2019

@christophe-g nice, thank you for testing!

Read more comments on GitHub >

github_iconTop Results From Across the Web

firebase cli command Code Example - Code Grepper
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing? ... Failed at the node-sass@4.7.2 postinstall script. ... Run...
Read more >
The Complete React Bootcamp 2022 (w - Skillshare
Created with up-to-date versions of React, React Hooks, Node. js, JavaScript, and Firebase. ------ What is this course all about? This course is...
Read more >
cannot find control with name: '0' - You.com | The AI Search ...
You are trying to assign an array of multiple items to FormArray having only one initial FormGroup at index 0. Assigning value at...
Read more >
Parsing CSV files in C#, with header - anycodings.com
Sometimes you don't own the objects one of the you're trying to read ... 4th result individual line in the CSV - by...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found