serge
sergeβ€’3w ago

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
Gaurav Chadha
Gaurav Chadhaβ€’3w ago
@serge Are you referencing the collection name from from any input or just direct value?
serge
sergeOPβ€’3w ago
hello. thank for reply this my flow
No description
No description
serge
sergeOPβ€’3w ago
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.
serge
sergeOPβ€’3w ago
this postman
No description
Gaurav Chadha
Gaurav Chadhaβ€’3w ago
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
serge
sergeOPβ€’3w ago
i am getting no error but no content the link is not appearing for download
No description
No description
serge
sergeOPβ€’3w ago
No description
serge
sergeOPβ€’3w ago
when i test is work perfect
No description
serge
sergeOPβ€’3w ago
yes is work my mistake i should select flow output as object
Gaurav Chadha
Gaurav Chadhaβ€’3w ago
flow output should work. Let me know if this doesn't work as well.
No description
serge
sergeOPβ€’3w ago
Thank you so much. It works perfectly. We used to have Buildship v1; now we're moving to v2 πŸ™‚ πŸ‘ thanks
serge
sergeOPβ€’3w ago
Also, another question: how can I pass the output as JSON? Because if I pass it like now, FlutterFlow will return an empty JSON.
No description
No description
No description
Gaurav Chadha
Gaurav Chadhaβ€’3w ago
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.
serge
sergeOPβ€’3w ago
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
serge
sergeOPβ€’3w ago
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.
No description
No description
Gaurav Chadha
Gaurav Chadhaβ€’3w ago
okay, yeah, it is a bucket Cors issue, we are now tracking this and will add a fix for this.
serge
sergeOPβ€’2w ago
thank for reply please let know when it fixes so i can update from my side as well