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.
21 Replies
Thanks for pointing it out. @Bhavya ✨ can you check on this?
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.
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:
I also went inside the node to test it in isolation same error "5 NOT_FOUND: "
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?
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.
Could you please try on Postman? And share a screenshot of the request and response of the shipped API?
I use Insomnia here is the error when calling the endpoint.
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: "
}
@Interlooper, could you try using a different browser, preferably Chrome, and see if this issue still persists?
Unfortunatly same in Chrome:
I'm on a starter plan if it means anything.
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.
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?
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 😅
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?"
Something is definitely off with my account. This is after I clicked "Manage My Subscription" button. Hope this helps
cc @Bobby could you please help here, seems issue with account subscription?
I replaced built-in db with Firestore. Same issue with Firestore on Create Firestore Document.
The subscription management button is fixed
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.