nuxt-community / firebase-module

🔥 Easily integrate Firebase into your Nuxt project. 🔥
https://firebase.nuxtjs.org
MIT License
641 stars 99 forks source link

httpsCallable error obj missing details and code always set to 'cancelled' #585

Closed timdiacon closed 2 years ago

timdiacon commented 2 years ago

@nuxtjs/firebase: ^7.6.1 firebase: 8 nuxt: ^2.15.7

Steps to reproduce

When throwing a functions.https.HttpsError from a function called via httpsCallable the error object doesn't contain the details property and the code property is always set to 'cancelled' regardless of what value I put in the HttpsError constructor

What is Expected?

error.code should contain the first property in the HttpsError constructor error.details should contain the third property in the HttpsError constructor

What is actually happening?

error.code contains 'cancelled' error.details is undefined

lupas commented 2 years ago

This has nothing to do with the nuxt/firebase module. We simply provide a way to use the JS SDK through nuxt, we don't modify any response objects coming from Firebase.

Please raise your issue on StackOverflow or the official Firebase JS SDK issue board.