Search code examples
amazon-web-servicesloopbackjsstrongloopaws-api-gateway

How to use amazon api gateway for existing api?


I have an API and I am trying to make it secure by using amazon api gateway but I get error as

{
  "message": "Internal server error"
}

[I have loopback API (strongloop) API running][1]

So at first I created resource memberdetails and then method getMembers and specified Query Strings however when I try test it, it gives me

500 error code.

I have tried the same endpoint in postman and I get the response with valid data as JSON.

I think I have got it all wrong.Need some assistance on this.

Thanks


Solution

  • 500 Internal Server Error could happen due to various root causes including API configuration issues. You can use the TestInvoke feature in the API Gateway console to test your API before deploying. The Test Invoke feature would display detailed response and the logs. That should give a better insight about your issue.

    If that doesn't help and if you have configured your API as per documentation, please reach out to us using AWS Forums or create a support case where we can get more details from you about your rest API.