โ10-13-2020 01:44 AM
Hi Team,
I am trying to use rest post snap in my pipeline and getting different response from Postman. Here is my pipeline . Please let me know how can i get the correct output from snap:
Response from snaplogic . see in bold. Also postman output given below in screenshot :
{
โresponseโ: {
โstatusLineโ: {
โprotoVersionโ: โHTTP/1.1โ,
โstatusCodeโ: 200,
โreasonPhraseโ: โOKโ
},
โentityโ: {
*** โsuccessโ: true,***
*** โresponseโ: {***
*** โdataโ: {***
*** โreferenceTokenโ: โchain_3a17c51e8b8c4a4aeaf3bee2c31bbb79dd210caa44a4cce1f5bfc5a3184e4f9bโ***
}
}
},
โheadersโ: {
โx-content-type-optionsโ: โnosniffโ,
โstrict-transport-securityโ: โmax-age=31536000; includeSubDomainsโ,
โx-download-optionsโ: โnoopenโ,
โx-frame-optionsโ: โdenyโ,
โconnectionโ: โkeep-aliveโ,
โx-permitted-cross-domain-policiesโ: โnoneโ,
โx-dns-prefetch-controlโ: โoffโ,
โcontent-typeโ: โapplication/jsonโ,
โdateโ: โTue, 13 Oct 2020 07:21:06 GMTโ,
โreferrer-policyโ: โno-referrerโ,
โcontent-lengthโ: โ128โ,
โcontent-security-policyโ: โdefault-src โselfโโ,
โcache-controlโ: โno-cacheโ,
โx-xss-protectionโ: โ1; mode=blockโ,
โfeature-policyโ: โaccelerometer โnoneโ; ambient-light-sensor โnoneโ; autoplay โnoneโ; camera โnoneโ; encrypted-media โnoneโ; fullscreen โnoneโ; geolocation โnoneโ; gyroscope โnoneโ; magnetometer โnoneโ; microphone โnoneโ; midi โnoneโ; payment โnoneโ; picture-in-picture โnoneโ; speaker โnoneโ; usb โnoneโ; vibrate โnoneโ; vr โnoneโโ
}
},
โoriginalโ: {
โheaderโ: {
โAcceptโ: โapplication/jsonโ,
โAUTHORIZATIONโ: โE799ED4CF2455AB6BB2E439CD7C0C6D3:Bv5Z+TVdrVsSH8oR9EvebSKBUAL6vHksGegBQdjbpTg=โ,
โContent-Typeโ: โapplication/jsonโ,
โ$โ: {
โX-ALTR-TIMEโ: โ2020-10-13T07:20:27.969Zโ
}
},
โbodyโ: {
โempidโ: โ1โ,
โnameโ: โYashโ,
โemailโ: โyash.verma@gmail.comโ
},
โurlโ: {
โurlโ: โhttps://dgl.preview.hhhh.com/api/v1/singleโ
}
}
},
Postman Response :
โ10-14-2020 07:43 AM
Hi @yash.verma
Can you please, tell more details about your payload and settings of Postman
The same payload , same url, returns correct response from Postman, but not at your rest post snapโฆ Try with removing the JSON.stringify() function from the HTTP entity field.
BR
Dimche