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

Firebase Emulator Suite Logs crashing #352

Closed
wdm954 opened this issue Sep 8, 2020 · 3 comments
Closed

Firebase Emulator Suite Logs crashing #352

wdm954 opened this issue Sep 8, 2020 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@wdm954
Copy link

wdm954 commented Sep 8, 2020

[REQUIRED] Environment info

firebase-tools: 8.10.0

Platform: macOS

[REQUIRED] Test case

n/a

[REQUIRED] Steps to reproduce

Open Logs tab in Firebase Emulator Suite.

Note: this only started to happen after I started using Firebase logger in Firebase functions.

[REQUIRED] Expected behavior

not crashing

[REQUIRED] Actual behavior

crashing with error:

react-dom.production.min.js:209 TypeError: Cannot read property 'mode' of undefined
    at HighlightedJSON.tsx:174
    at Array.map (<anonymous>)
    at Hr (HighlightedJSON.tsx:95)
    at Qo (react-dom.production.min.js:153)
    at ms (react-dom.production.min.js:261)
    at cu (react-dom.production.min.js:246)
    at su (react-dom.production.min.js:246)
    at Zs (react-dom.production.min.js:239)
    at react-dom.production.min.js:123
    at e.unstable_runWithPriority (scheduler.production.min.js:19)
@samtstern samtstern transferred this issue from firebase/firebase-tools Sep 8, 2020
@samtstern
Copy link

@wdm954 transferring this issue over to the firebase-tools-ui repo.

@zprice-invsqr
Copy link

This error happens while a JSON string is being formatted. lines that end with {} or {}, are incorrectly handled here, causing the next line to fail. The following logging from a cloud function reproduces the issue:

console.log(JSON.stringify({
    "this line": "is quite fine",
    "teh problematic boi": {},
    "innocent bystander": "(ಥ﹏ಥ)", // this line required for exception to be thrown
}));

@sam-gc
Copy link
Contributor

sam-gc commented Sep 28, 2020

Thanks for reaching out with the report!

@sam-gc sam-gc added the bug Something isn't working label Sep 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants