-
Notifications
You must be signed in to change notification settings - Fork 43
"fireway detected open async calls" when creating documents #74
Comments
Same here. Happens with batches too. Node version: v16.20.0 |
+1 Interesting that hard-coding the module.exports.migrate = async ({ firestore, FieldValue, FieldPath }) => {
await firestore.collection('test').doc('foo').set({key: 'value'})
} But as reported by @bradleesand, any other variation fails. |
Made some headway on this issue:
I tried applying a similar fix to Fireway, but for some reason the async hook for the I'll continue looking for workarounds / fixes. |
Created a workaround. It ain't pretty, but it's available here: https://github.com/j1mmie/fireway It works by shimming the Firestore's client library uses the My fork also fixes an issue with forceAwait not working, and adds a 30 second timeout to it. It might possibly resolve this: #51 |
For some reason, I keep getting warnings that "fireway detected open async" calls whenever I create a document in a migration.
All of these example migrations that do manage their async calls properly, are getting that warning.
The text was updated successfully, but these errors were encountered: