Denver Coneybeare

Results 341 comments of Denver Coneybeare

I've logged b/335854401 to track this request internally. Note, however, that I can't make any promises as to if or when we will fix this. But we will reply back...

@asaadjaber The error is due to passing a `CollectionReference` as an argument to `setDoc()`, which expects a `DocumentReference` as an argument. Try replacing ```js await assertSucceeds(setDoc(context.firestore().collection("isFavorited"), "Sparrow"), { "name": "Sparrow",...

FWIW this is how Firestore does it in its tests: https://github.com/firebase/firebase-js-sdk/blob/master/packages/firestore/test/util/node_persistence.ts. Note that this is NOT officially supported.

(note to googlers: this may be related to support case b/325591749, which reports similar webchannel issues when the network is throttled)

I have a potential fix for this issue. Would anyone be willing/able to test it out? The fix is in https://github.com/firebase/firebase-js-sdk/pull/8145 (NOTE: it is still a work-in-progress). Please comment _on...

Drive-by comment: If anyone is able to reproduce this bug, please enable Firestore debug logging by calling `setLogLevel('debug')` ([docs](https://firebase.google.com/docs/reference/js/firestore_?_gl=1*13ibyzk*_up*MQ..*_ga*NjUyMjkwOTI1LjE3MTMxOTc3MTg.*_ga_CW55HF8NVT*MTcxMzE5NzcxOC4xLjAuMTcxMzE5NzcxOC4wLjAuMA..#functionloglevel_)) and providing the logs. The logs will give some insight into...

Sounds like a reasonable request, especially for single-document queries. Collection and collection-group queries can probably also include the information about the collection and/or collection-group as well. I'll take a look...

Update: I haven't started working on this yet. I'm looking into whether including document paths in error messages has any PII concerns. Unfortunately, this isn't a high priority relative to...

Yep, this issue is still on my radar. I don't have any timeline guidance though.

@cybercoder-naj Unfortunately, the Firestore SDK will never be given details about security rules violations from the backend. That information would be too useful to would-be malicious users trying to defeat...