oracle/oci-java-sdk

Invoking function fails when SDK version updated from 3.9.1 to 3.13.0 and 3.14.0

GindiKhangura opened this issue · 2 comments

Invoking functions worked with SDK v3.9.1; after updating the version to 3.13.0 and 3.14.0, both versions throw the error com.oracle.bmc.model.BmcException: Error returned by InvokeFunction operation in FunctionsInvoke service.(404, NotAuthorizedOrNotFound, false) You're trying to invoke a function without setting the invoke endpoint.

Note: the same endpoint was provided in all cases (example: https://aabbcc112233.us-ashburn-1.functions.oci.oraclecloud.com).

I do not see any related breaking changes documented in the changelog.

Hi @GindiKhangura , I doubt this has to do with SDK behavior because typically 404 error means either you don’t have the right permission to access the resource or the resource doesn’t exist. I would suggest checking if your permissions exist or got modified to point to a different resource/compartment etc, OR the resource exists in the correct location where you have the permission defined.