Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fn - ERROR - Could not find config file #1592

Open
twethanhong opened this issue May 27, 2022 · 1 comment
Open

fn - ERROR - Could not find config file #1592

twethanhong opened this issue May 27, 2022 · 1 comment

Comments

@twethanhong
Copy link

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!

@yufeifly
Copy link

yufeifly commented May 27, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants