title: Invoke API error - AWS API gateway
body: <p>I'm trying to create an API using AWS API gateway</p>
  
  <ul>
  <li>first I have created a resource as /sample</li>
  <li>then created a method GET</li>
  <li>provided Endpoint-URL and saved it.</li>
  <li>In the Method Execution pane, select Method Request, added HTTP Request Headers as "Authorization" , added this to pass basic authentication details to back-end url  since service is secured with basic authentication, </li>
  <li>In the Method Execution pane, choose Integration Request, mapped HTTP Headers, Mapped from as  "method.request.path.Authorization"</li>
  <li>Choose Method Execution, and in the Client box, choose TEST, passed Header Authorization - Basic XXXXXX
  After finished all the configuration successfully, tested the API , getting "message": "Internal server error" status code -500</li>
  </ul>
  
  <p>For your reference my back-end service is running in the amazon-linux machine.</p>
  
  <pre><code>Checked logs:
     Execution log for request test-request
  Tue Sep 08 16:43:54 UTC 2015 : Starting execution for request: test-invoke-request
  Tue Sep 08 16:43:54 UTC 2015 : API Key: test-invoke-api-key
  Tue Sep 08 16:43:54 UTC 2015 : Method request path: {}
  Tue Sep 08 16:43:54 UTC 2015 : Method request query string: {}
  Tue Sep 08 16:43:54 UTC 2015 : Method request headers: {Authorization=************p1c2Vy}
  Tue Sep 08 16:43:54 UTC 2015 : Method request body before transformations: null
  Tue Sep 08 16:43:54 UTC 2015 : Execution failed due to configuration error: Invalid endpoint address
  </code></pre>
  
  <p>Could you please let me know how to resolve this issue?</p>