Firebase-js-sdk: Cannot invoke HttpsCallable functions anymore after upgrading to firebase 7.22.0

Created on 3 Oct 2020  路  12Comments  路  Source: firebase/firebase-js-sdk


[REQUIRED] Describe your environment

  • Operating System version: MacOS 10.15.7
  • Browser version: Chrome 85.0.4183.121
  • Firebase SDK version: 7.22.0
  • Firebase Product: Functions

[REQUIRED] Describe the problem

In an Angular 10 (10.1.4) application calling any HTTPS callable functions fails as soon as I upgrade to the latest available Firebase JavaScript SDK version 7.22.0. The error is:

Failed to execute function createDocumentFn. Error: internal
    at new HttpsErrorImpl (index.cjs.js:60)
    at _errorForResponse (index.cjs.js:155)
    at Service.<anonymous> (index.cjs.js:560)
    at step (tslib.es6.js:100)
    at Object.next (tslib.es6.js:81)
    at fulfilled (tslib.es6.js:71)
    at ZoneDelegate.invoke (zone-evergreen.js:364)
    at Object.onInvoke (core.js:27486)
    at ZoneDelegate.invoke (zone-evergreen.js:363)
    at Zone.run (zone-evergreen.js:123)

The previous version of the Firebase JavaScript SDK 7.21.1 and the versions before it worked fine (downgrading from 7.22.0 to 7.21.1 immediately fixes the problem).

Steps to reproduce:

  • Upgrade the Firebase JavaScript SDK to 7.22.0.
  • Try to execute any HTTPS callable function.
functions

Most helpful comment

Just released 7.22.1 (release notes).

This affects dependencies so you may want to clean and reinstall node_modules or your lockfiles if it doesn't work at first.

Let me know if this does or doesn't fix the issues.

All 12 comments

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

FWIW I have the same issue with a completely different environment:

  • Operating System version: ArchLinux
  • Browser version: Firefox 81.0.1
  • Firebase SDK version: 7.22.0
  • Firebase Product: Functions

Running within a React application.

Also observed on Stack Overflow.

I first observed this in 7.21.1. Working in 7.21.0.

Was reported in: https://github.com/firebase/firebase-js-sdk/issues/3849

This PR should fix it: https://github.com/firebase/firebase-js-sdk/pull/3853

It did not make it into 7.22.0, it should be in the next release.

Also affected by this. I understand that it wasn't added to 7.22.0. When is the next release expected that includes https://github.com/firebase/firebase-js-sdk/pull/3853 ?

Releases are normally every week on Thursdays but I will try to see if I can do an emergency release earlier this week to fix this regression.

Can confirm the issue and fix above. Our stack:

  • next
  • vercel
  • react

Looks like there are separate bugs affecting callable functions in both 7.21.1 and 7.22.0. Working on getting an emergency release out today.

Just released 7.22.1 (release notes).

This affects dependencies so you may want to clean and reinstall node_modules or your lockfiles if it doesn't work at first.

Let me know if this does or doesn't fix the issues.

@hsubox76 Fixed the issue for me after updating from 7.22.0 -> 7.22.1

thanks a lot

Just tested 7.22.1 (upgraded from 7.21.1) and I can confirm that the issue as introduced in 7.22.0 (at least for me) has been fixed. Thanks!

Can confirm that reinstall helped. Had version 7.22.0 and onCall methods didn't work. In 7.22.1 working correctly.
P.S. that was scary as this is my first project and I am new to all this :) Thank you for help lads.

Was this page helpful?
0 / 5 - 0 ratings