Interlooper
Interlooper12mo ago

Create Document node not working

Hi all, I tried using BuildShip's Database with Firestore Write/Read example, but it doesnt work. I tested just the node it always returns this error: { "error": { "error": { "code": 5, "details": "", "metadata": {}, "note": "Exception occurred in retry method that was not classified as transient" }, "label": "Create Document", "message": "5 NOT_FOUND: " }, "label": "Branch", "message": "5 NOT_FOUND: " } When I checked the code I saw that there is an undefined parameter when initializing Firestore. I provided screenshoot.
No description
21 Replies
Harini
Harini12mo ago
Thanks for pointing it out. @Bhavya ✨ can you check on this?
Bhavya
Bhavya12mo ago
Hey @Interlooper, I can assure you that the Create Document node works as expected. From the error messages, it seems the Create Document node lies within a branch? Could you perhaps send a support request from within the BuildShip App and set "Include a copy of the Workflow" to true (as described here. This would help us to check what's the underlying cause of this issue in your workflow.
Interlooper
Interlooper12mo ago
Hi @Bhavya ✨ thanks for helping. I have already filed the issue and added a copy of workflow before reaching out here. Create document is inside of a branch as it is provided in Firestore Write/Read example. I haven't modified anything. Here is the screenshot:
No description
Interlooper
Interlooper12mo ago
I also went inside the node to test it in isolation same error "5 NOT_FOUND: "
Bhavya
Bhavya12mo ago
I see... Just to clarify, you're seeing this error with node testing. Are you getting the same error when you try to ship the workflow as well?
Interlooper
Interlooper12mo ago
No error when shipping it just fails while calling the API externaly with same message. Can it be the browser? I'm on latest Firefox browser.
Gaurav Chadha
Gaurav Chadha12mo ago
Could you please try on Postman? And share a screenshot of the request and response of the shipped API?
Interlooper
Interlooper12mo ago
I use Insomnia here is the error when calling the endpoint.
No description
Interlooper
Interlooper12mo ago
Whenever there is Create Document node in workflow it stops here with that error. Other nodes work fine. { "error": { "error": { "code": 5, "details": "", "metadata": {}, "note": "Exception occurred in retry method that was not classified as transient" }, "label": "Create Document", "message": "5 NOT_FOUND: " }, "label": "Branch", "message": "5 NOT_FOUND: " }
Bhavya
Bhavya12mo ago
@Interlooper, could you try using a different browser, preferably Chrome, and see if this issue still persists?
Interlooper
Interlooper12mo ago
Unfortunatly same in Chrome:
No description
Interlooper
Interlooper12mo ago
I'm on a starter plan if it means anything.
Bhavya
Bhavya12mo ago
We're looking into this issue as we have not been able to replicate it yet, @Interlooper. One thing that I want to test is that if you're able to connect your own Firebase project to it. Could you try connecting your own Firebase project instead of using the underlying Firebase project? Here are the steps to set up your own project: https://docs.buildship.com/tutorials/firebase-project#option-2-connecting-to-your-own-firebase-project
Connecting to your Firebase Project – BuildShip
A unified resource to start building your backend with low-code. Dive into triggers, nodes, and step-by-step guidance to jumpstart your workflow creation.
No description
Interlooper
Interlooper12mo ago
Ok. So I connected with different email (free account) and created brand new project. I imported Firestore Write/Read template and it worked! Could it must be something with my user account?
Bhavya
Bhavya12mo ago
I suspect so... I'm waiting on a response from the team on this. Will get back to you as soon as I get some insight. Sorry for the trouble 😅
Interlooper
Interlooper12mo ago
Thank you so much 🙂 Please let me know if this can be solved. Hey @Bhavya ✨ I deleted cache from the Storage and tried using Create document again. Now I actually see errors: "Cannot find module '/usr/src/app/bucket/cache/builtNodes/@buildship/buildship-create-document/v1_0_0.cjs' imported from /usr/src/app/dist/index.js\nDid you mean to import /usr/src/app/bucket/cache/builtNodes/@buildship/buildship-create-document/v1_0_0.cjs?"
Interlooper
Interlooper12mo ago
Something is definitely off with my account. This is after I clicked "Manage My Subscription" button. Hope this helps
No description
Gaurav Chadha
Gaurav Chadha12mo ago
cc @Bobby could you please help here, seems issue with account subscription?
Interlooper
Interlooper12mo ago
I replaced built-in db with Firestore. Same issue with Firestore on Create Firestore Document.
No description
Bobby
Bobby12mo ago
The subscription management button is fixed
Interlooper
Interlooper12mo ago
I can confirm Subscription button is working now. Now just the DB 🙂 Just an update. Since I was stuck unable to use builtin DB or Firestore form Google I have recreated my projects on a different account and everything works there.