Forum Discussion

ricardoTyson's avatar
ricardoTyson
New Contributor II
7 years ago

Sending CSV file from SFTP server to API (REST Post)

Hi fellows, I am trying to send a csv file from an sftp server to an api endpoint but I can’t make the REST POST to work, I keep getting error:400 from the api
I have tried 3 different pipelines but all of them get the same error
I tried 3 different ways to pass it the input:
the fisrt one I format the file i get form the sftp and transform it to a document

input:

error:

POST setting:

then I tried just to read it and put it right away though the binary to document

input:

error:

POST settings:

then I tried to just write it(not in the pipline underneath) and read it from the local file store from snaplogic but didn’t work either

error:

POST settings:

Hopefully someone will spot what I’ve been doing wrong because I’ve spent a lot of time triyng to get this right :c
pd.I already tried guiding myself with these two posts I found with no success:

thank you in advance for reading.