react-native-firebase icon indicating copy to clipboard operation
react-native-firebase copied to clipboard

[🐛] When using Analytics logEvent, the custom parameter with name 'error_value' not appearing in the Firebase console

Open AleCatSS opened this issue 3 years ago • 6 comments

Issue

Hello there,

we are logging firebase events using some custom parameters. One of this parameter name is 'error_value'. The event is logged correctly in Firebase but 'error_value' parameter doesn't show up and no error/warning is logged (checked in Javascript and XCode console). If I change the error name for example error_value -> error_value_test the parameter is correctly logged.

Is this parameter reserved at some level?

Here is a snippet to reproduce the issue:

import Analytics from '@react-native-firebase/analytics';

const analytics = Analytics();

analytics.logEvent('my_event',{error_value: 'something bad occurred, try again later'});


Project Files

Javascript

Click To Expand

package.json:

"@react-native-firebase/analytics": "14.11.0",

firebase.json for react-native-firebase v6:

# N/A

iOS

Click To Expand

ios/Podfile:

  • [ ] I'm not using Pods
  • [x] I'm using Pods and my Podfile looks like:

From the podfile lock

- "RNFBAnalytics (from../node_modules/@react-native-firebase/analytics)"

AppDelegate.m:

// N/A

Android

Click To Expand

Have you converted to AndroidX?

  • [x] my application is an AndroidX application?
  • [ ] I am using android/gradle.settings jetifier=true for Android compatibility?
  • [ ] I am using the NPM package jetifier for react-native compatibility?

android/build.gradle:

// N/A

android/app/build.gradle:

// N/A

android/settings.gradle:

// N/A

MainApplication.java:

// N/A

AndroidManifest.xml:

<!-- N/A -->

Environment

Click To Expand

react-native info output:

 OUTPUT GOES HERE
  • Platform that you're experiencing the issue on:
    • [X] iOS
    • [X] Android
    • [ ] iOS but have not tested behavior on Android
    • [ ] Android but have not tested behavior on iOS
    • [X] Both
  • react-native-firebase version you're using that has this issue:
    • e.g. 5.4.3
  • Firebase module(s) you're using that has the issue:
    • e.g. Instance ID
  • Are you using TypeScript?
    • Y/N & VERSION
---

AleCatSS avatar Jul 07 '22 15:07 AleCatSS

Hi there! Unfortunately I'm not sure - you might ask on the corresponding upstream SDK for one of the platforms you use (either firebase-android-sdk or firebase-ios-sdk)

mikehardy avatar Jul 07 '22 16:07 mikehardy

@mikehardy thanks for your answer. If this can help I experience the same issue on both platforms (I updated the description) so the problem is likely to be before the specific platform SDKs or directly in Firebase. I will also try with the upstream SDKs as you suggested.

AleCatSS avatar Jul 07 '22 16:07 AleCatSS

I have the same problem.. @AleCatSS did you find a solution?

BogdanRad avatar Jul 18 '22 07:07 BogdanRad

Hey @BogdanRad, not yet, for the moment we decided to change the parameter name to a different one.

AleCatSS avatar Jul 18 '22 11:07 AleCatSS

FWIW I'm setting up some new custom dimensions (that I haven't started logging yet), and when picking a parameter that I want to map my dimension to, I'm seeing error_value show up in the "Event Parameter" dropdown list. I've never logged that before, so it may be an undocumented, yet reserved, parameter name.

henryglendening-hh avatar Aug 04 '22 19:08 henryglendening-hh

Same as @henryglendening-hh . I'm seeing "error_value" show up in our list of event_params, with the value equal to the name of a different custom parameter. I am taking this to mean that the Firebase SDK had trouble serializing our custom parameter, and is reporting that to us via the built-in "error_value" param. So it's probably a reserved name.

scottbouma avatar Aug 25 '22 19:08 scottbouma

Hello 👋, to help manage issues we automatically close stale issues.

This issue has been automatically marked as stale because it has not had activity for quite some time.Has this issue been fixed, or does it still require attention?

This issue will be closed in 15 days if no further activity occurs.

Thank you for your contributions.

github-actions[bot] avatar Dec 05 '22 19:12 github-actions[bot]

"error_value" is a reserved param. It was previously called firebase_error_value and it's documented here : https://firebase.google.com/docs/analytics/errors?hl=en

marouane-tradelab avatar Nov 01 '23 06:11 marouane-tradelab