Code Monkey home page Code Monkey logo

Comments (12)

blidd-google avatar blidd-google commented on June 29, 2024 6

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.

Seanitzel avatar Seanitzel commented on June 29, 2024 3

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.

google-oss-bot avatar google-oss-bot commented on June 29, 2024

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.

Bullfrog1234 avatar Bullfrog1234 commented on June 29, 2024

This could also be an issue for firebase tools. Not sure. If so let me know and will raise it there.

from firebase-tools.

benomatis avatar benomatis commented on June 29, 2024

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.

Bullfrog1234 avatar Bullfrog1234 commented on June 29, 2024

Any news on the timeline for this?

from firebase-tools.

joehan avatar joehan commented on June 29, 2024

@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.

Bullfrog1234 avatar Bullfrog1234 commented on June 29, 2024

@joehan Thanks for the update and understood about code freeze.

from firebase-tools.

MutatedGamer avatar MutatedGamer commented on June 29, 2024

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.

benbrunyee avatar benbrunyee commented on June 29, 2024

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.

bytewiz avatar bytewiz commented on June 29, 2024

Same issue here using onDocumentWrittenWithAuthContext

from firebase-tools.

Bullfrog1234 avatar Bullfrog1234 commented on June 29, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤ī¸ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.