Getting 403 Forbidden error while testing webApi internally

Hi Guys,

I created a webApi and tested internally with the below code. I am getting Forbidden error,

PFB the code

a!httpQuery(
  url:"https://........../suite/webapi/testRunStatusForId", //I am working in a bank network
  method:"GET",
  queryParameters:a!httpQueryParameter(
    name:"id",
    value:261
  ),
  basicAuthenticationCredentials:a!httpAuthenticationBasic(
    userName:a!scsField(
      externalSystemKey:"citestwebapi",
      fieldKey:"username"
    ),
    password:a!scsField(
      externalSystemKey:"citestwebapi",
      fieldKey:"password"
    ),
    preemptive:true
  )
)

 

Test Output

Time

 
 
Type

Dictionary 

Value

[success:false,result:,error:[code:[category:0,namespace:1,detail:0],title:HTTP error connecting to cip-dit1.bankofamerica.com/.../testRunStatusForId 403 Forbidden,detail:No details available]]

 

But it is working fine inside the created webApi internal test build. Confused !!!

Kindly help me out guys

  Discussion posts and replies are publicly visible

Parents Reply Children
No Data