OCI Functions: Timeout scenarios When Triggering via API Gateway with Node.js Lambda Function
I'm performance testing and I'm trying to configure I'm reviewing some code and This might be a silly question, but I'm experiencing a timeout scenario when trying to invoke an OCI Function from an API Gateway endpoint... The function is implemented in Node.js 14.x and is supposed to return a simple JSON response. However, when I send a request to the API Gateway, I get a 504 Gateway Timeout behavior after 30 seconds. I've checked that the function runs successfully when invoked directly through the console, returning the expected response in under 1 second. Here's a snippet of my Node.js function: ```javascript exports.handler = async (event) => { return { statusCode: 200, body: JSON.stringify({ message: 'Hello from OCI Functions!' }) }; }; ``` I've also configured the API Gateway with a timeout of 30 seconds, but it doesn't seem to be the question. To debug, I included logging in my function to trace execution, and I see the log outputs indicating that the function is invoked, but it never seems to complete when called from the API Gateway. I’ve double-checked the API Gateway configuration to ensure it points to the correct OCI Function endpoint and that the authentication settings are correct. I even tried increasing the function's memory limit, believing that performance might be an scenario, but that hasn’t resolved the timeout. Could there be an scenario with the networking configuration between the API Gateway and the function? Any insights into how I can troubleshoot or resolve this timeout scenario would be greatly appreciated. For context: I'm using Javascript on macOS. What am I doing wrong? Has anyone else encountered this? For reference, this is a production CLI tool. Hoping someone can shed some light on this. I'm developing on Ubuntu 22.04 with Javascript. The project is a microservice built with Javascript. Thanks for your help in advance! I've been using Javascript for about a year now. Is there a better approach?