serge - Hello, I am getting erro with my api in...
Hello, I am getting erro with my api in other account when i test it is work pefect on buildship but when i test it in postman it give me
"error": {},
"label": "Get Firestore Document",
"message": "Value for argument "documentPath" is not a valid resource path. Path must be a non-empty string."
the api is
https://p5mdes.buildship.run/invoice-83a93b87432d
18 Replies
@serge Are you referencing the collection name from from any input or just direct value?
hello. thank for reply
this my flow


BuildShip - Visual backend workflow builder
Visually build workflows and powerful backend logic for your apps. Powered by AI, connect to anything with or without code.
this postman

Okay, can you make r small in the body in Postman. And in trigger setup make response status 200 and in the response body pass flow output object.
Then try again
i am getting no error but no content the link is not appearing for download



when i test is work perfect

yes is work my mistake i should select flow output as object
flow output should work. Let me know if this doesn't work as well.

Thank you so much. It works perfectly. We used to have Buildship v1; now we're moving to v2 🙂
👍 thanks
Also, another question: how can I pass the output as JSON? Because if I pass it like now, FlutterFlow will return an empty JSON.



To make is JSON you can set the output as custom output in flow output node and click ⚙️ to configure and set the types as object. Then you can make it in any JSON format.
ok great thanks
when i generate it in flutterflow i am geting
Access to XMLHttpRequest at 'https://storage.googleapis.com/buildship-p5mdes-europe-west1/in/3e02aaa0-105a-496a-a2d7-1d8e9530acb3.pdf' from origin 'https://abricool-admin-gf8h1v.flutterflow.app' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
do i need to add something in api or from FF side
i think from buildship side where they store the file
Thank you for your reply. in the error say that no 'Access-Control-Allow-Origin' header is present on the requested resource. and try to add in Buildship, but it is not working. The issue is related to Google Storage which is related to Buildship.


okay, yeah, it is a bucket Cors issue, we are now tracking this and will add a fix for this.
thank for reply please let know when it fixes so i can update from my side as well