my_variableOriginal post
Rank 1: Thread
Error : {"message":"Function with the requested ID could not be found.","code":404,"type":"function_not_found","version":"0.10.15"}
Function ID is correct
Executing log showing this
"Environment variables are not set. Function cannot use Appwrite SDK."
Summary
Solution: The issue was resolved by passing the "project" parameter in the payload object. The corrected payload should look like this:
```javascript
payload = {
"project": "6462fc2bb1482c6cbcbb",
"data": '{}'
}
```
Additionally, the error message "Function with the requested ID could not be found" was resolved by ensuring that the function ID was correct. The log indicated that the environment variables were not set, so the function was unable to use the Appwrite SDK. This may need to be addressed by setting the appropriate environment variables.