Skip to content

fn - ERROR - Could not find config file #1592

@twethanhong

Description

@twethanhong

Description

When i invoke the function ,i got "Error invoking function. status: 502 message: function failed".
Then i go to console of oracle cloud,and find the description of this error,"fn - ERROR - Could not find config file at /home/fn/.oci/config".

BUT when i run the code in oracle cloud instance(VM),i can find the config.
config = from_file()
It mean i have a config file on ~/.oci/config.

BUT when i use fn to depoly ,i can't invoke this function.

the detailof error
"01G3Z34V4J1BT0F38ZJ0000PZ6 - fn - ERROR - module 'main' has no attribute 'process': File \"/python/fdk/runner.py\", line 74, in handle_request\\n response_data = await with_deadline(ctx, handler_code, body)\\n File \"/python/fdk/runner.py\", line 54, in with_deadline\\n raise ex\\n File \"/python/fdk/runner.py\", line 47, in with_deadline\\n handle_func = handler_code.handler()\\n File \"/python/fdk/customer_code.py\", line 95, in handler\\n return getattr(mod, self._entrypoint)\\n"

please help me.
Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions