fastfeedback icon indicating copy to clipboard operation
fastfeedback copied to clipboard

Value for argument "value" is not a valid query constraint. Cannot use "undefined" as a Firestore value. If you want to ignore undefined values, enable `ignoreUndefinedProperties`.

Open jaymehta20 opened this issue 4 years ago • 2 comments

Was watching the stream 7: React 2025 – Authentication on API Routes (Firebase JWT)

image I can't seem to figure out this error Error message when I open feedback page for a particular site: Value for argument "value" is not a valid query constraint. Cannot use "undefined" as a Firestore value. If you want to ignore undefined values, enable ignoreUndefinedProperties.

But when I hard code the uid value which is causing the error it works. image Now I can access the page image

Public repo: https://github.com/jaymehta20/fastfeedback

jaymehta20 avatar Sep 14 '21 06:09 jaymehta20

Somehow uid is not correct, it seems? Have you tried adding more logging to the value of uid from where it originated from?

leerob avatar Sep 14 '21 19:09 leerob

I think the uid is correct as when I hard code it, I can see the feedback page, and even when I console log it the value seems correct but when I compare that uid variable with authorId it says it's not a valid constraint. Not sure what's the issue here.

Public Repo: https://github.com/jaymehta20/fastfeedback

jaymehta20 avatar Sep 15 '21 04:09 jaymehta20