You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

unable to invoke the function in oci

edited Aug 22, 2019 10:11AM in Containers, Kubernetes, & Serverless Functions 1 comment

Summary

unable to invoke the function in oci

Content

As per Python SDK , when I am importing the config value, the function is not getting invoke and is error out . The function has been built using python .

The following command is used to invoke the function

fn invoke  app_py pythonfn

 

*************************

import json
import io
import oci
from oci.config import from_file
import sys
from fdk import response


config = from_file(profile_name="DEFAULT")
print(conf)

def handler(ctx, data: io.BytesIO=None):


    try:
        body = json.load(data)
.................
....................
..........................

Tagged:

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!