projectbilalOriginal post
React Developer
I can't figure out why my funciton works when testing locally using appwrite run functions and not when deployed in the cloud. I searched for this issue but doesn't seem to be a response.
This is the error I get when deployed and I execute the funciton.
No module named 'function.'
The root directory is functions/invokeNotification
I'm running a very very simple function. The code is here.
This is my entry point: ./src/main.py
The root directory is set as functions/invokeNotification
the full error is in the main.py on github
Summary
Issue: Developer is facing an error 'No module named 'function.' when deploying the function in the cloud, even though it works locally.
Solution: The file structure and naming conventions need to be double-checked. Ensure that the function name and directories are correctly set up.