unable to invoke the function in oci
Summary
unable to invoke the function in ociContent
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:
0