App Connect

App Connect

Join this online user group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.


#Applicationintegration
#App Connect
#AppConnect
 View Only
Expand all | Collapse all

Upload files to bucket using Google Cloud Storage Request Node

  • 1.  Upload files to bucket using Google Cloud Storage Request Node

    Posted Mon October 28, 2024 02:04 PM

    Hi,

    I have been trying to write a file to a bucket using the google cloud storage request node. I have configured the folder path location(for example /dev/drop/) as Object. And I have the default schema which is generated if we configure the update/create objects. While configuring the path location in the property node as $Root/JSON/Data/body/File it throws error as below. 

    ParserException
                        File:CHARACTER:C:\ci\product-build\WMB\src\DataFlowEngine\nodejs\NodejsManager\ImbNodejsTreeConversions.cpp
                        Line:INTEGER:767
                        Function:CHARACTER:ImbNodejsTreeConversions::fromJSONTreeInternal
                        Type:CHARACTER:
                        Name:CHARACTER:
                        Label:CHARACTER:
                        Catalog:CHARACTER:BIPmsgs
                        Severity:INTEGER:3
                        Number:INTEGER:5708
                        Text:CHARACTER:'Data' element must be of type JSON.Array or JSON.Object

    I can understand that it's not matching the schema but not sure how I can create the JSON structure and also I am not finding an example for uploading files using google cloud storage request node. Can someone help me on this please?

    Regards

    Naveena



    ------------------------------
    Naveena Velusamy
    ------------------------------


  • 2.  RE: Upload files to bucket using Google Cloud Storage Request Node

    Posted Tue October 29, 2024 05:48 AM

    Hi All,

    I am not finding an option to add the source application in connect discovery. Below is the screen shot of it. And also I am not sure if we can add proxy to this node. Can someone advice please?



    ------------------------------
    Naveena Velusamy
    ------------------------------



  • 3.  RE: Upload files to bucket using Google Cloud Storage Request Node

    Posted Mon November 04, 2024 05:38 AM
    Edited by AJAY PONNAPPAN Mon November 04, 2024 05:38 AM

    I dont think we can directly upload a file by giving its location. We could  probably add FileInput node to read the file contents and pass the read data as the body to create the object 



    ------------------------------
    AJAY PONNAPPAN
    ------------------------------