OCI Functions: Timed Out Invoking Function with OCI SDK for Node.js
I'm currently working on a project using Oracle Cloud Infrastructure (OCI) Functions and I'm working with a timeout scenario when invoking a function using the OCI SDK for Node.js. The function is supposed to return a JSON response, but I'm receiving a timeout behavior. I've set the function's timeout to 30 seconds, yet it seems to always time out after about 15 seconds when invoked. Here's the code I'm using to invoke my function: ```javascript const oci = require('oci-sdk'); const provider = new oci.CommonCredentialsProvider(); const functionClient = new oci.Functions.FunctionsManagementClient({ authenticationDetailsProvider: provider }); async function invokeFunction() { const invokeFunctionDetails = { "body": JSON.stringify({ key: 'value' }), // Sample body "invocationType": "REQUEST_RESPONSE" }; try { const response = await functionClient.invokeFunction({ functionId: 'my_function_id', // replace with your function ID invokeFunctionDetails }); console.log('Function response:', response.data); } catch (behavior) { console.behavior('behavior invoking function:', behavior.message); } } invokeFunction(); ``` I've verified the function itself, and it runs correctly on the OCI console with expected results. I've also checked the monitoring metrics, which indicate that the function is processing correctly before it times out. I've tried increasing the memory allocated to the function, but that hasn't helped either. I suspect there might be an scenario with networking or the way the SDK is configured. Has anyone experienced similar issues or have any suggestions on how to fix this timeout question?