Comments (12)
Hi all, I've flagged the issue to the Firestore team and we should have support for the new auth context event types in the next release. Will update this thread once we've released support. Thanks for your patience!
from firebase-tools.
Would be great if you can put a note about it in the docs in the meantime, to save people's time :)
from firebase-tools.
I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.
from firebase-tools.
This could also be an issue for firebase tools. Not sure. If so let me know and will raise it there.
from firebase-tools.
I get the same error, despite importing the trigger like this:
import { onDocumentWrittenWithAuthContext } from 'firebase-functions/v2/firestore'
I get the following error
java.lang.IllegalArgumentException: Unsupported eventType: google.cloud.firestore.document.v1.written.withAuthContext; Supported ones: [google.cloud.firestore.document.v1.created, google.cloud.firestore.document.v1.deleted, google.cloud.firestore.document.v1.updated, google.cloud.firestore.document.v1.written]
For some reason it is trying to use Google Cloud Firestore triggers instead of Firebase Functions Firestore triggers despite the fact it's how it's been imported.
And I can confirm this is definitely an emulator problem only, the function otherwise deploys fine.
from firebase-tools.
Any news on the timeline for this?
from firebase-tools.
@Bullfrog1234 This is in the works, we discovered some issues with our initial implementation that we're currently addressing. Unfortunately, due to upcoming code freezes for Google I/O, this will probably be a few more weeks we're able to ship it.
from firebase-tools.
@joehan Thanks for the update and understood about code freeze.
from firebase-tools.
Is there an ETA for when a release will be out? My use-case for wanting this support is I want to write unit tests for the functions that use Firebase Emulator (e.g. firebase emulators:exec --only firestore,functions "npm run test:functions"
). Unfortunately, that's not possible if the emulator can't start
from firebase-tools.
Are there any suggested alternatives for the time being?
Local development for my web app is paused until firebase emulators:start
works.
from firebase-tools.
Same issue here using onDocumentWrittenWithAuthContext
from firebase-tools.
Hi @joehan,
I assume the code freeze is completed, so I am wishing for an update on this.
If the timeline is greater than 2 weeks from today can we follow @Seanitzel suggestion and add a note to the documentation. This will inform uses that this is not working in the emulators until it is fixed.
from firebase-tools.
Related Issues (20)
- Unable to connect to emulator over https HOT 3
- Firebase-tools v13.11.0 has crashlytics buildtools v3 that does not work on Intel-based Macs HOT 2
- Linux install using automatic script, but recommended using npm HOT 2
- Firebase deployment started failing since 01/06 HOT 1
- zeta HOT 2
- Build is not getting uploaded to Firebase App Distribution using GOOGLE_APPLICATION_CREDENTIALS HOT 7
- Disable email sending for Firebase Distribution HOT 1
- [Firebase App Hosting] Error during Angular build on Firebase App Hosting triggered by GitHub Actions HOT 1
- Firebase RemoteConfig generates invalid JSON with the rollout feature HOT 3
- Pub/Sub emulator fails to start when cache path contains a whitespace HOT 2
- searchParams does not work Firebase Hosting HOT 4
- firebase emulators start HOT 2
- pnpm workspace firebase support
- Run firebase emulators:start --only functions HOT 5
- Running `flutterfire reconfigure` returned a `FormatException` HOT 2
- Cloud Runtime Config is currently experiencing issues and not able to deploy HOT 56
- 502 error on firebase functions:config:get HOT 1
- Your proposed upload is larger than the maximum object size specified in your Policy Document. HOT 3
- V2 Functions with uppercase letters are not deployed HOT 13
- Sharp out of date HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
đ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. đđđ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google â¤ī¸ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from firebase-tools.