React-native-firebase: [馃悰] Bug Report Title - CHANGE ME

Created on 10 Dec 2020  路  3Comments  路  Source: invertase/react-native-firebase


Issue



Describe your issue here
Library version: "@react-native-firebase/functions": "^10.1.1",

When calling
await functions().httpsCallable(**functionName**)({**options**})
the following error occurs:

TypeError: _internal.NativeFirebaseError.getStackWithMessage is not a function. (In '_internal.NativeFirebaseError.getStackWithMessage("Error: " + _this.message, nativeErrorInstance.jsStack)', '_internal.NativeFirebaseError.getStackWithMessage' is undefined)

Project Files






Javascript

Click To Expand

#### `package.json`:

# N/A
#### `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:

# N/A
#### `AppDelegate.m`:
// N/A


Android

Click To Expand

#### Have you converted to AndroidX? - [ ] 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**: - [ ] iOS - [ ] Android - [ ] **iOS** but have not tested behavior on Android - [ ] **Android** but have not tested behavior on iOS - [ ] 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`




Needs Triage Bug

All 3 comments

Had the same issue, it was fixed by passing an empty object in the function call:

Before:

const { data } = await functions().httpsCallable('listProducts')();

After:

const { data } = await functions().httpsCallable('listProducts')({});

We're having this issue with 10.5.1 on Android and iOS.
The empty object doesn't solve it, besides, we need to pass options in our case.

This issue has no real title, and no template. I suggest someone open a fresh issue with the information that would help us locate the problem, and ideally an App.js that we could drop in a clean project that reproduces it

Was this page helpful?
0 / 5 - 0 ratings