Issue calling target from Service call out policy

Hello All,

There are many times i had tried calling target using service callout but this time i'm getting an error which states

{"status":{"code":401,"errorType":"unauthorized","errorDetails":"Authentication parameters missing"}}

But the same target is reachable by configuring target URL at proxy target endpoint or from any web debugger like postman.

Could you please let me know what is the issue here.

Thanks,KP

0 1 379
1 REPLY 1

Could you please let me know what is the issue here.

There's no way for us to know what the issue is, with the information you've given us. It sure looks like a valid response from the target.

If I were troubleshooting this, I would re-examine all the assumptions.

  • are you sure you are connecting to the same URL from the ServiceCallout? The same host? Same Scheme? Same path?
  • Does the target system require authentication, and if so, have you verified that they are being correctly propagated in the ServiceCallout

If those assumptions are still valid, then I would insert an additional Apigee Edge proxy, a passthrough, between the ServiceCallout and the eventual target. And then use Apigee Edge tracing to determine what's really being transmitted back and forth.

good luck!