Issue with service callout to endpoint

Hi,

I am observing a weird behavior.

I have a service callout to an endpoint. When I hardcode the URL in the policy, it goes through.

But when I get the URL from TargetServers use a target server variable in the service callout policy, it doesn't work. I get the following error:

error Execution of ServiceCallout SC-TokenExtract-PointServ failed. Reason: eof unexpected
error.cause eof unexpected

Thanks
Adithya

0 3 504
3 REPLIES 3

With this limited information we can't help you much but we can guide you how to trace the issue -

- Check if the hardcoded URL and target server path are using same protocol (http or https)

- Add JS policy for debugging purpose only and print the target path variable value. OR in the trace only you can trace.

- Check the virtual hosts are properly configured

Trace these areas and let us know if you find the culprit if not please do provide more information so we can help you.

Show your ServiceCallout policy configuration!

see the url which is getting build by enabling trace and check the url which is working.