Back

[SOLVED] Error Function Send OTP ( FUNCTION ID ) not found in the current directory. Skipping ...

  • 0
  • Functions
Aarush Acharya
7 Jul, 2023, 08:55

is there anything wrong with my path ?

TL;DR
The user encountered an error regarding the function 'Send OTP' not being found in the current directory. The issue was resolved by providing the correct paths in the appwrite.json file. They realized that the problem occurred because they were using appwrite's CLI and did not use the default command to build the function's project, causing the paths in the appwrite.json to not match the actual code file. This resulted in the deployment step being skipped. The user also stated that they failed to provide a screenshot of the output for the deploy command. Lastly, they asked if there was anything wrong with the path in their appwrite.json file. Solution
Aarush Acharya
7 Jul, 2023, 09:00

"functions": [ { "$id": "Function ID", "name": "Send OTP", "runtime": "node-16.0", "path": "functions/Send OTP", "entrypoint": "src/send_otp.js", "ignore": [ "node_modules" ], "execute": [ "any" ], "events": [], "schedule": "", "variables": { // variables } } ]

Aarush Acharya
7 Jul, 2023, 09:00

this is the functions part of my appwrite.json

Aarush Acharya
7 Jul, 2023, 10:33

even after this i get a

Aarush Acharya
7 Jul, 2023, 10:34

this

Drake
10 Jul, 2023, 02:14

That's weird...I think that's an invalid ID

Binyamin
10 Jul, 2023, 03:01

Maybe you're pointing to a different server? Check the content of ~/.appwrite/prefs.json

Aarush Acharya
10 Jul, 2023, 07:59

Thanks a lot all for responding I forgot updating the status of this issue

Aarush Acharya
10 Jul, 2023, 08:04

It has been resolved the issue was caused as I was using appwrites CLI and did not use the default command to build a function's project hence the paths in the appwrite.json did not match to the actual code file hence the cli could not find the file which was to be deployed hence the deployement step was skipped though environment varibles were set the function was accessed but nothing was deployed also for the next query would try to provide more info on the issue I just realised for this one did not even provide a full screen shot of the output for the deploy command

Aarush Acharya
10 Jul, 2023, 08:04

Solved by providing the right paths in the appwrite.json

Aarush Acharya
10 Jul, 2023, 08:04

Sincere Thanks @Binyamin @Steven

Aarush Acharya
10 Jul, 2023, 08:06

[SOLVED] Error Function Send OTP ( FUNCTION ID ) not found in the current directory. Skipping ...

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more