[firestore:export] Error: write after end
See original GitHub issueEnvironment info
firebase-tools: 8.4.3 Platform: Windows Nodejs version: 10.16.0 Terminal: Hyper
Test case
I get this error when I run more than one export with an instance of firestore emulator running.
See this screen capture for more details :
Steps to reproduce
- Run the firestore emulator :
firebase emulators:export ./data
- Run a first export :
firebase emulators:export ./data
The export should be work fine.
- Run an another export :
firebase emulators:export ./data
This export throw an error.
Expected behavior
I want made more than one export.
Actual behavior
When I try to open the firebase-debug.log
file, I get an error.
I think the trouble is due to the logging which is lock by one of the two command. When I run the second export the logger can’t write into the
firebase-debug.log
.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:13 (5 by maintainers)
Top Results From Across the Web
Export and import data | Firestore - Firebase
On failure, the page displays an error message. Use the firestore export command to export all the documents in your database, replacing [BUCKET_NAME]...
Read more >Error importing .json file to Firestore with firestore-import
I exported my Firestore database using firestore-export and wrote it to a json file. I had to read this thread in order to...
Read more >Exporting and Importing Entities - Datastore - Google Cloud
This page describes how to export and import Firestore in Datastore mode entities using the managed export and import service. The managed export...
Read more >How to fix Firestore Error: PERMISSION_DENIED - Medium
That's by far the most common and annoying error that you can get when you try to perform a Query against a Cloud...
Read more >How to use the firebase-functions.firestore function in ... - Snyk
database().ref(START_DOCUMENT_NAME); await ref.set({ start: new Date().toISOString() }); ref.once("value", (snap) => { res.json({ data: snap }); }); }); exports ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@andirayo thank you for confirming it’s fixed! That’s great news, since I really had no good ideas on how to solve this problem haha.
Has anyone tried this with
8.7.0
and see if it still fails? I am wondering if https://github.com/firebase/firebase-tools/issues/2464 helped at all, even though it was a fix for a different issue.