title: Transport error: 404 Error: Not Found in WSO2 EI 6.1.1
body: <p>I am trying to send Campaign by using Mailchimp. While calling this endpoint, i am getting ERROR like &quot;Transport error: 404 Error: Not Found&quot;. Can anyone please help me out to resolve this?</p>
  <p><strong>Note</strong>: When i try in Postman by hitting direct mailchimp url it works fine.</p>
  <p><strong>Wire Log:</strong></p>
  <pre><code> [2020-10-13 11:11:02,611] []  INFO - ApplicationManager Successfully Deployed Carbon Application : QRSagMailchimpIntegrator-CAR_1.0.0 {super-tenant}
  [2020-10-13 11:11:14,590] [] DEBUG - wire HTTP-Listener I/O dispatcher-4 &gt;&gt; &quot;POST /campaignSend/predict/sendCampaignId=d164a3989d?AuthKey=3216f54e-b6d9-11e6-80f5-76304dec7eb7 HTTP/1.1[\r][\n]&quot;
  [2020-10-13 11:11:14,591] [] DEBUG - wire HTTP-Listener I/O dispatcher-4 &gt;&gt; &quot;User-Agent: PostmanRuntime/7.26.5[\r][\n]&quot;
  [2020-10-13 11:11:14,592] [] DEBUG - wire HTTP-Listener I/O dispatcher-4 &gt;&gt; &quot;Accept: */*[\r][\n]&quot;
  [2020-10-13 11:11:14,594] [] DEBUG - wire HTTP-Listener I/O dispatcher-4 &gt;&gt; &quot;Cache-Control: no-cache[\r][\n]&quot;
  [2020-10-13 11:11:14,595] [] DEBUG - wire HTTP-Listener I/O dispatcher-4 &gt;&gt; &quot;Postman-Token: 5a44668a-6947-4958-ad24-76fef6ddb62e[\r][\n]&quot;
  [2020-10-13 11:11:14,597] [] DEBUG - wire HTTP-Listener I/O dispatcher-4 &gt;&gt; &quot;Host: localhost:8280[\r][\n]&quot;
  [2020-10-13 11:11:14,598] [] DEBUG - wire HTTP-Listener I/O dispatcher-4 &gt;&gt; &quot;Accept-Encoding: gzip, deflate, br[\r][\n]&quot;
  [2020-10-13 11:11:14,599] [] DEBUG - wire HTTP-Listener I/O dispatcher-4 &gt;&gt; &quot;Connection: keep-alive[\r][\n]&quot;
  [2020-10-13 11:11:14,600] [] DEBUG - wire HTTP-Listener I/O dispatcher-4 &gt;&gt; &quot;Content-Length: 0[\r][\n]&quot;
  [2020-10-13 11:11:14,601] [] DEBUG - wire HTTP-Listener I/O dispatcher-4 &gt;&gt; &quot;[\r][\n]&quot;
  [2020-10-13 11:11:14,684] []  INFO - LogMediator To: /campaignSend/predict/sendCampaignId=d164a3989d?AuthKey=3216f54e-b6d9-11e6-80f5-76304dec7eb7, MessageID: urn:uuid:aa380541-04f4-4bae-8d8a-d727a7f
  a45ba, Direction: request, Welcome Logger = === Send Campaigns ===, Campaign ID = d164a3989d
  [2020-10-13 11:11:15,742] []  INFO - HTTPSender Unable to sendViaPost to url[https://us17.api.mailchimp.com/3.0/campaigns/d164a3989d/actions/send/predict/sendCampaignId=d164a3989d?AuthKey=3216f54e-b
  6d9-11e6-80f5-76304dec7eb7]
  org.apache.axis2.AxisFault: Transport error: 404 Error: Not Found
          at org.apache.axis2.transport.http.HTTPSender.handleResponse(HTTPSender.java:326)
          at org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:196)
          at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:77)
          at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:451)
          at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:278)
          at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442)
          at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:430)
          at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:225)
          at org.apache.axis2.client.OperationClient.execute(OperationClient.java:149)
          at org.apache.synapse.message.senders.blocking.BlockingMsgSender.sendReceive(BlockingMsgSender.java:302)
          at org.apache.synapse.message.senders.blocking.BlockingMsgSender.send(BlockingMsgSender.java:211)
          at org.apache.synapse.mediators.builtin.CallMediator.handleBlockingCall(CallMediator.java:150)
          at org.apache.synapse.mediators.builtin.CallMediator.mediate(CallMediator.java:113)
          at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:97)
          at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:59)
          at org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:158)
          at org.apache.synapse.rest.Resource.process(Resource.java:343)
          at org.apache.synapse.rest.API.process(API.java:399)
          at org.apache.synapse.rest.RESTRequestHandler.apiProcess(RESTRequestHandler.java:123)
          at org.apache.synapse.rest.RESTRequestHandler.dispatchToAPI(RESTRequestHandler.java:101)
          at org.apache.synapse.rest.RESTRequestHandler.process(RESTRequestHandler.java:69)
          at org.apache.synapse.core.axis2.Axis2SynapseEnvironment.injectMessage(Axis2SynapseEnvironment.java:304)
          at org.apache.synapse.core.axis2.SynapseMessageReceiver.receive(SynapseMessageReceiver.java:78)
          at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
          at org.apache.synapse.transport.passthru.ServerWorker.processNonEntityEnclosingRESTHandler(ServerWorker.java:326)
          at org.apache.synapse.transport.passthru.ServerWorker.processEntityEnclosingRequest(ServerWorker.java:372)
          at org.apache.synapse.transport.passthru.ServerWorker.run(ServerWorker.java:151)
          at org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
          at java.lang.Thread.run(Thread.java:748)
  [2020-10-13 11:11:15,778] []  INFO - LogMediator To: https://us17.api.mailchimp.com/3.0/campaigns/d164a3989d/actions/send/, MessageID: urn:uuid:aa380541-04f4-4bae-8d8a-d727a7fa45ba, Direction: reque
  st, FAUALTYYYYYYYYYYYYYYYYYY************* = Transport error: 404 Error: Not Found
  [2020-10-13 11:11:15,781] [] DEBUG - wire HTTP-Listener I/O dispatcher-4 &lt;&lt; &quot;HTTP/1.1 202 Accepted[\r][\n]&quot;
  [2020-10-13 11:11:15,782] [] DEBUG - wire HTTP-Listener I/O dispatcher-4 &lt;&lt; &quot;Date: Tue, 13 Oct 2020 05:41:15 GMT[\r][\n]&quot;
  [2020-10-13 11:11:15,783] [] DEBUG - wire HTTP-Listener I/O dispatcher-4 &lt;&lt; &quot;Transfer-Encoding: chunked[\r][\n]&quot;
  [2020-10-13 11:11:15,784] [] DEBUG - wire HTTP-Listener I/O dispatcher-4 &lt;&lt; &quot;Connection: keep-alive[\r][\n]&quot;
  [2020-10-13 11:11:15,785] [] DEBUG - wire HTTP-Listener I/O dispatcher-4 &lt;&lt; &quot;[\r][\n]&quot;
  [2020-10-13 11:11:15,785] [] DEBUG - wire HTTP-Listener I/O dispatcher-4 &lt;&lt; &quot;0[\r][\n]&quot;
  [2020-10-13 11:11:15,786] [] DEBUG - wire HTTP-Listener I/O dispatcher-4 &lt;&lt; &quot;[\r][\n]&quot;
  </code></pre>
  <p><strong>Postman: (Direct Mailchimp URL)</strong></p>
  <p><a href="https://i.stack.imgur.com/As6G3.png" rel="nofollow noreferrer">Mailchimp URL</a></p>
  <p><strong>API Code:</strong></p>
  <pre><code>&lt;api context=&quot;/campaignSend&quot; name=&quot;campaign_send_v1&quot; xmlns=&quot;http://ws.apache.org/ns/synapse&quot;&gt;
  &lt;resource method=&quot;POST&quot; uri-template=&quot;/predict/sendCampaignId={campaignId}?AuthKey={secKey}&quot;&gt;
      &lt;inSequence&gt;
          &lt;log&gt;
              &lt;property name=&quot;Welcome Logger&quot; value=&quot;=== Send Campaigns ===&quot;/&gt;
              &lt;property expression=&quot;get-property('uri.var.campaignId')&quot; name=&quot;Campaign ID&quot;/&gt;
          &lt;/log&gt;
          &lt;property description=&quot;secKey&quot; expression=&quot;get-property('uri.var.secKey')&quot; name=&quot;secKey&quot; scope=&quot;default&quot; type=&quot;STRING&quot;/&gt;
          &lt;property description=&quot;ESB-Authentication&quot; expression=&quot;get-property('QRSag-VBFeedsAuthKey')&quot; name=&quot;authKey&quot; scope=&quot;default&quot; type=&quot;OM&quot;/&gt;
          &lt;property description=&quot;FeedsStoredAuthKey&quot; expression=&quot;$ctx:authKey//*[local-name()='SecurityToken']&quot; name=&quot;authenticatekey&quot; scope=&quot;default&quot; type=&quot;STRING&quot;/&gt;
          &lt;!-- ==================== Check authentication ==================== --&gt;
          &lt;filter description=&quot;CheckUserAPIValidation&quot; xpath=&quot;get-property('secKey') = get-property('authenticatekey')&quot;&gt;
              &lt;then/&gt;
              &lt;else&gt;
                  &lt;payloadFactory media-type=&quot;json&quot;&gt;
                      &lt;format&gt;{&quot;errorCode&quot;:&quot;$1&quot;,&quot;errorTrace&quot;:&quot;$2&quot;}&lt;/format&gt;
                      &lt;args&gt;
                          &lt;arg value=&quot;QRSaG - 401&quot;/&gt;
                          &lt;arg value=&quot;Invalid Authentication.Contact QRSagSupport&quot;/&gt;
                      &lt;/args&gt;
                  &lt;/payloadFactory&gt;
                  &lt;log level=&quot;custom&quot;&gt;
                      &lt;property expression=&quot;json-eval($.)&quot; name=&quot;===API Authentication Failed===&quot;/&gt;
                  &lt;/log&gt;
                  &lt;respond/&gt;
              &lt;/else&gt;
          &lt;/filter&gt;
          
          &lt;property name=&quot;Authorization&quot; scope=&quot;transport&quot; type=&quot;STRING&quot; value=&quot;Basic XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX&quot;/&gt;
          &lt;call blocking=&quot;true&quot;&gt;
              &lt;endpoint key=&quot;sendCampaign&quot;/&gt;
                &lt;timeout&gt;
                  &lt;duration&gt;17000000&lt;/duration&gt;
                  &lt;responseAction&gt;fault&lt;/responseAction&gt;
              &lt;/timeout&gt;
          &lt;/call&gt;
          &lt;log&gt;
              &lt;property expression=&quot;json-eval($.)&quot; name=&quot;LoggerText_JsonResponse&quot;/&gt;
          &lt;/log&gt;
          &lt;respond/&gt;
      &lt;/inSequence&gt;
      &lt;outSequence/&gt;
      &lt;faultSequence&gt;
      &lt;log&gt;
              &lt;property expression=&quot;get-property('ERROR_MESSAGE')&quot; name=&quot;FAUALTYYYYYYYYYYYYYYYYYY*************&quot;/&gt;
          &lt;/log&gt;
      &lt;/faultSequence&gt;
  &lt;/resource&gt;
  </code></pre>
  <p><strong>Endpoint Value:</strong></p>
  <pre><code>    &lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
  &lt;endpoint name=&quot;sendCampaign&quot; xmlns=&quot;http://ws.apache.org/ns/synapse&quot;&gt;
      &lt;http method=&quot;post&quot; uri-template=&quot;https://us17.api.mailchimp.com/3.0/campaigns/{uri.var.campaignId}/actions/send/&quot;/&gt;
  &lt;/endpoint&gt;
  </code></pre>