{"action":"opened","issue":{"url":"https://api.github.com/repos/wso2/product-ei/issues/2392","repository_url":"https://api.github.com/repos/wso2/product-ei","labels_url":"https://api.github.com/repos/wso2/product-ei/issues/2392/labels{/name}","comments_url":"https://api.github.com/repos/wso2/product-ei/issues/2392/comments","events_url":"https://api.github.com/repos/wso2/product-ei/issues/2392/events","html_url":"https://github.com/wso2/product-ei/issues/2392","id":338852287,"node_id":"MDU6SXNzdWUzMzg4NTIyODc=","number":2392,"title":"Uri template expression not parsed when call mediator is in blocking mode.","user":{"login":"ThishaniLucas","id":8208020,"node_id":"MDQ6VXNlcjgyMDgwMjA=","avatar_url":"https://avatars1.githubusercontent.com/u/8208020?v=4","gravatar_id":"","url":"https://api.github.com/users/ThishaniLucas","html_url":"https://github.com/ThishaniLucas","followers_url":"https://api.github.com/users/ThishaniLucas/followers","following_url":"https://api.github.com/users/ThishaniLucas/following{/other_user}","gists_url":"https://api.github.com/users/ThishaniLucas/gists{/gist_id}","starred_url":"https://api.github.com/users/ThishaniLucas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ThishaniLucas/subscriptions","organizations_url":"https://api.github.com/users/ThishaniLucas/orgs","repos_url":"https://api.github.com/users/ThishaniLucas/repos","events_url":"https://api.github.com/users/ThishaniLucas/events{/privacy}","received_events_url":"https://api.github.com/users/ThishaniLucas/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-06T08:34:58Z","updated_at":"2018-07-06T08:34:58Z","closed_at":null,"author_association":"MEMBER","body":"**Description:**\r\nWhen we use a call mediator in the blocking mode and give the uri-template as an expression, it is not parsed and the below error is logged. \r\n\r\n```\r\nINFO - LogMediator To: http://www.mocky.io/v2/5185415ba171ea3a00704eed, MessageID: urn:uuid:29fc4481-c851-4cf1-a927-96cdffa1ad9e, Direction: request, MESSAGE = Executing default 'fault' sequence, ERROR_CODE = 401002, ERROR_MESSAGE = The system cannot infer the transport information from the {uri.var.service} URL., Envelope: <?xml version='1.0' encoding='utf-8'?><soapenv:Envelope xmlns:soapenv=\"http://www.w3.org/2003/05/soap-envelope\"><soapenv:Body><test/></soapenv:Body></soapenv:Envelope>\r\nERROR - CallMediator Error while performing the call operation in blocking mode\r\n```\r\n\r\n**Suggested Labels:**\r\n<!-- Optional comma separated list of suggested labels. Non committers can’t assign labels to issues, so this will help issue creators who are not a committer to suggest possible labels-->\r\n\r\n**Suggested Assignees:**\r\n<!--Optional comma separated list of suggested team members who should attend the issue. Non committers can’t assign issues to assignees, so this will help issue creators who are not a committer to suggest possible assignees-->\r\n\r\n**Affected Product Version:**\r\n\r\n**OS, DB, other environment details and versions:**    \r\n\r\n**Steps to reproduce:**\r\n1. Deploy a sequence similar to the following and call it in a scheduled task.\r\n```\r\n<sequence name=\"SEQ\">\r\n        <log level=\"custom\">\r\n            <property name=\"TASK\" value=\"EXECUTING\"/>\r\n        </log>\r\n        <property expression=\"get-property('registry','conf:/EP')\"\r\n            name=\"uri.var.LoginServiceUrl\" scope=\"default\" type=\"STRING\" xmlns:ns=\"http://org.apache.synapse/xsd\"/>\r\n        <call blocking=\"true\">\r\n            <endpoint>\r\n                <http method=\"POST\" uri-template=\"{uri.var.service}\"/>\r\n            </endpoint>\r\n        </call>\r\n        <log level=\"full\">\r\n            <property name=\"AFTER\" value=\"CALL\"/>\r\n        </log>\r\n        <drop/>\r\n</sequence>\r\n```\r\n2. Make sure to define a registry resource EP with the endpoint uri.\r\n3.Save the task and the above error will be logged.\r\n\r\n**Related Issues:**\r\nhttps://github.com/wso2/product-ei/issues/2284"}}
{"actor":{"display_login":"ThishaniLucas"}}