Unable to create meeting using Zoom API from AWS Lambda function

Description
I am working with AWS Amplify, I created REST API which invokes AWS Lambda Function. In the event handler we capture the request body details and make a http GET or POST call to the zoom API and return the response to React UI.

Error

The Get method works as expected, it fetches the meeting list based on the user id passed. However, the POST method does not work it neither creates the meeting and no response, Lambda function always enters the catch block and returns empty.

In the UI we receive CORS error.

Which App Type (OAuth / Chatbot / JWT / Webhook)?
We use JWT token for authorization

Which Endpoint/s?
AWS API Gateway is the endpoint we access which invokes Lambda Function.

How To Reproduce (If applicable)
Steps to reproduce the behavior:

  1. Create an Amplify Project
  2. Add Rest API > Lambda Function
  3. Modify Code and Amplify Push

Screenshots (If applicable)
POST Method returns CORS error

Screenshot 2021-02-12 at 11.53.53 AM

Hey @vageesan_s,

Thank you for reaching out to the Zoom Developer Forum. First, please make sure that you have configured AWS Amplify to accept CORS requests from the front-end that you have running on localhost:3000.

Let me know if that helps.

Thanks,
Max

I am working to get the response in postman first.

In Postman it works as expected, looking in to API Gateway CORS

Hey @vageesan_s,

Thank you for the update! Let me know if you have any further questions or issues as you test this out.

Thanks,
Max

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.