firebase-js-sdk icon indicating copy to clipboard operation
firebase-js-sdk copied to clipboard

Uncaught FirebaseError: Performance: Custom metric name _fp is invalid (performance/invalide custom metric name)

Open henrylearn2rock opened this issue 7 years ago • 3 comments

[REQUIRED] Describe your environment

  • Operating System version: Win10
  • Browser version: Chrome Version 76.0.3809.100 (Official Build) (64-bit)
  • Firebase SDK version: 6.4.1
  • Firebase Product: performance

[REQUIRED] Describe the problem

Steps to reproduce:

exception is thrown on load

index.cjs.js?6d09:1001 Uncaught FirebaseError: Performance: Custom metric name _fp is invalid (performance/invalide custom metric name).
    at Trace.putMetric (webpack-internal:///./node_modules/@firebase/performance/dist/index.cjs.js:1001:33)
    at Trace.incrementMetric (webpack-internal:///./node_modules/@firebase/performance/dist/index.cjs.js:986:18)
    at Function.Trace.createOobTrace (webpack-internal:///./node_modules/@firebase/performance/dist/index.cjs.js:1098:23)
    at eval (webpack-internal:///./node_modules/@firebase/performance/dist/index.cjs.js:1209:23)
    at eval (webpack-internal:///./node_modules/first-input-delay/src/first-input-delay.js:68:9)
    at Array.forEach (<anonymous>)
    at reportFirstInputDelayIfRecordedAndValid (webpack-internal:///./node_modules/first-input-delay/src/first-input-delay.js:67:17)
    at recordFirstInputDelay (webpack-internal:///./node_modules/first-input-delay/src/first-input-delay.js:51:7)
    at onInput (webpack-internal:///./node_modules/first-input-delay/src/first-input-delay.js:142:9)

Relevant Code:

none needed

henrylearn2rock avatar Aug 23 '19 18:08 henrylearn2rock

I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.

google-oss-bot avatar Aug 23 '19 18:08 google-oss-bot

I did report same error in @angular/fire since I am using it with Angular and it got updated same day so wasn't really sure which lib is the incompatible one. In my case it happened when service worker is introduced in the mix. https://github.com/angular/angularfire2/issues/2154

bogacg avatar Aug 23 '19 18:08 bogacg

Thanks for reporting the issue. Please update to the latest version. It should be fixed as of this pr: https://github.com/firebase/firebase-js-sdk/pull/2110

alikn avatar Aug 25 '19 03:08 alikn