Forum Discussion

ariana's avatar
ariana
New Contributor
4 years ago

How to bring API JSON text into REST Post Snap?

Hi all,

I am trying to use a JSON file to feed in the body of a response that is working in Postman with curl code like this:

In SnapLogic I added the raw body in a JSON generator and want to feed that into a REST Post Snap. My pipeline looks like this:

With no headers nor queries in Postman, only the JSON/raw body and the service URL, I retrieve results with no issues. However, with Snaplogic I am not receiving output. Has anyone done this? I am told I cannot incorporate the credentials into the headers, it must be in the body…but how do I reconcile this with SnapLogic? No one on my team has worked on something externalized that has functioned in this way.

Thanks!

8 Replies

  • Supratim's avatar
    Supratim
    Contributor III

    @darshthakkar Just to make sure you config correctly - 1. use wincsp/other tools to login the sftp server (please use same credential as used in snaplogic). And try to create a file there. If you can then it should work in snap as well.
    2. Make sure you choose cloudplex/groundplex correctly.
    3. And hope you validate this is sftp server not smb.

    • darshthakkar's avatar
      darshthakkar
      Valued Contributor

      Done, still not working for me.

      • siwadon's avatar
        siwadon
        Employee

        I think it is the problem with colon in the filename which is not a valid character in many file systems generally. You could try removing that from the expression.