I’ve been trying all day to install the RevenueCat extension, but no luck. This is the error I’m getting:
; RESOURCE_ERROR at /deployments/firebase-ext-firestore-revenuecat-purchases/resources/handler: {"ResourceType":"gcp-types/cloudfunctions-v1:projects.locations.functions","ResourceErrorCode":"400","ResourceErrorMessage":"Gen1 operation for function projects/f1-live-pulse-27147/locations/us-central1/functions/ext-firestore-revenuecat-purchases-handler failed: Build failed: npm error code EUSAGE\nnpm error\nnpm error `npm ci` can only install packages when your package.json and package-lock.json or npm-shrinkwrap.json are in sync. Please update your lock file with `npm install` before continuing.\nnpm error\nnpm error Invalid: lock file's long@5.2.3 does not satisfy long@5.2.4\nnpm error Invalid: lock file's long@5.2.3 does not satisfy long@5.2.4\nnpm error Invalid: lock file's long@5.2.3 does not satisfy long@5.2.4\nnpm error\nnpm error Clean install a project\nnpm error\nnpm error Usage:\nnpm error npm ci\nnpm error\nnpm error Options:\nnpm error r--install-strategy <hoisted|nested|shallow|linked>] t--legacy-bundling]\nnpm error r--global-style] l--omit <dev|optional|peer> g--omit <dev|optional|peer> ...]]\nnpm error r--include <prod|dev|optional|peer> g--include <prod|dev|optional|peer> ...]]\nnpm error r--strict-peer-deps] p--foreground-scripts] t--ignore-scripts] t--no-audit]\nnpm error r--no-bin-links] k--no-fund] n--dry-run]\nnpm error r-w|--workspace <workspace-name> g-w|--workspace <workspace-name> ...]]\nnpm error r-ws|--workspaces] e--include-workspace-root] o--install-links]\nnpm error\nnpm error aliases: clean-install, ic, install-clean, isntall-clean\nnpm error\nnpm error Run \"npm help ci\" for more info\nnpm error A complete log of this run can be found in: /www-data-home/.npm/_logs/2025-01-10T14_45_06_171Z-debug-0.log; Error ID: 7fa33aaa."}
@mitchel-32fd79 Interesting, my env file, doesn’t have anything mentioning my project other than REVENUECAT_SHARED_SECRET. Did you have PROJECT env var?
Hi @mb-3aced2 ! I went back to the project to verify, I’m sorry I shared the wrong file. It was in the ‘.firebaserc’ which is an hidden file in the main ‘firestore-revenuecat-purchases’ folder. There I changed the project and was able to deploy the extension. It is now working fine.
Thanks for posting this. I cannot for the life of me get this to install, I have the same error as you.
I can clone the repo and run
cd functions && npm install && cd ..
without any issue. It does appear that its trying to create a new project though, instead of using my existing project when I run
firebase ext:install . --project tproject-id]
Which then causes firebase deploy --only extensions to produce the error:
Error: Request to https://cloudresourcemanager.googleapis.com/v1/projects/revenuecat-xxxx had HTTP Error: 403, The caller does not have permission
Any thoughts?
Here is the source of error and solution for it: Default project value of downloaded extension is revenuecat-156XXXXXX. You need to change this value to your own project name.
1.Open the downloaded directory in Vscode, Atom Text editor or any type of programming IDE.
2.Then execute ctrl+shift+F or command+shift+f for searching “revenuecat-156755”. It will list all files that includes this value.
3.Change it with your project name then execute below command again, everything will be fixed; (firebase deploy --only extensions)
firebase deploy --only extensions
THEN IT WILL BE FIXED. Succesful output will look like this.
Why is this broken? Can someone at RevenueCat address?
Why is this broken? Can someone at RevenueCat address?
What is the issue for you, which error are you getting, did you tried to 2 preferred solutions?
Same error as OP. The preferred solution is directly installing through Firebase Extensions web interface
Same error as OP. The preferred solution is directly installing through Firebase Extensions web interface
Yes it would be good, you can fix it by manually deploying the code while waiting for bug fix. I suggest you to try the fix I posted. We are in the age of accelerationism unless you are in Europe . I just wrote a custom webhook handler for all events to manage custom user/credit system.
After getting this error, I just pressed the reinstall button and the installation got though this time. However, the function is still not deployed: “Function deployment failed. Try again.”
> The preferred solution is directly installing through Firebase Extensions web interface +1
I’ve been trying to get this to work but to no success. I contacted customer support and today I got this response from them, hopefully it’ll be sorted out in a few days.
“Hey there!
Thanks for reaching out. This is an issue we're aware of and currently working on a fix - we've published a new version that is currently under review, and this should be approved within a few days. I can keep you updated once this version is available!
Kaitlin Developer Support Engineer RevenueCat”
Do we know what version is the fixed version? I see 0.1.14 is the current version.
@Anybody that sees this thread: if you see that the Firebase-RevenueCat extension is updated/live please ping this thread. Thanks
Also running into this issue. Hoping this is fixed soon.