
ForumUnleash Your Ideas, Connect, and Collaborate
Hey Guys,
This is a technical question for API Automation!!
I am using Karate as a framework for my API automation to do some testing that I need to make use of Vansah APIs, and it seems that the security from the Vansah API host (i.e. Cloudflare) is blocking my Karate to get the correct response that I am looking for.
Anyone can advice me through this?
Example response from Karate:
16:34:37.127 [com.intuit.karate.cli.Main.main()] DEBUG com.intuit.karate - response time in milliseconds: 9551 < 2001 < Date: Mon, 13 Sep 2021 06:34:37 GMT1 < Content-Type: application/json; charset=utf-81 < Transfer-Encoding: chunked1 < Connection: keep-alive1 < Expires: Thu, 19 Nov 1981 08:52:00 GMT1 < Cache-Control: no-store, no-cache, must-revalidate1 < Pragma: no-cache1 < Access-Control-Allow-Origin: *1 < Access-Control-Allow-Headers: *1 < Access-Control-Allow-Methods: POST,GET,DELETE,PUT,PATCH,OPTIONS1 < CF-Cache-Status: DYNAMIC1 < Expect-CT: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"1 < Report-To: {"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v3?s=PCvMKZX3%2Bha7sXUi6fZ%2BiuCLm3AcoLYxjKF5O%2BvQhaL0ef9l8zFXUa0hGfo%2B2IZOYmG40zzrK1bL3VPd7HmpUxcEU3FHC5fLsg3DiZw4sxvB42M%2B%2FeSEhoSbpHa881fb"}],"group":"cf-nel","max_age":604800}1 < NEL: {"success_fraction":0,"report_to":"cf-nel","max_age":604800}1 < Server: cloudflare1 < CF-RAY: 68df59cc395e5569-SYD1 < Content-Encoding: br1 < alt-svc: h3=":443"; ma=86400, h3-29=":443"; ma=86400, h3-28=":443"; ma=86400, h3-27=":443"; ma=864001 < Set-Cookie: vns_session=grcsa2c6h5ulfnuhuhf00pmi34br1a32; Max-Age=1631529317000; Expires=Thu, 22 Oct 53722 10:37:57 GMT; Domain=api.vansah.app; SecureAL" ~M?Wm?????????↓????????↔???P>??(?Z♠?im?Vx?‼H????c?(?◄►??b?♫??k?▬?▬-♂????▲???:?qE??♂→7▲??N;→m 0+??C?♠@;??_☺?mul2+5@P?☻??C5?BQ<W☼☻M?J??♫'?1?>?0? ???k??☺!? ??k►??????¶?o?Dh??LD?Ee? Po?◄⌂??α???c♠?=??#k?\??↓N?/j??K??k►?N??♦?↨B?W/???◄??A?!?▲↕Km☻?sc\_????V??|§x*&?R !?M?.?▬???{?8?!??→?▬<♥∟?I)%jwo??H??↓E*PQ?F8|♣?~?↑2?S?????▼R$E?♦→??????????3?I;→??h↓??? ?,?)?J?♦‼H?\g♀`♦@???$◄,?♣



Comments
Start the Conversation
I have looked at this answer, so is vansah meant to block the response to be retrieved as of security concerns.. or is there anything missing?
Note: I am able to get the response with …more
hi Tarek Albawab you have to be using https://id.vansahapi.app/
however I am still getting the same F H
16:51:46.667 [com.intuit.karate.cli.Main.main()] DEBUG com.intuit.karate - response time in …more
I have created the issue in Karate Git, let me see the response
https://github.com/intuit/karate/issues/1769