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).
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:
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:
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.
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.