I am recieiving this error when I run a function which calls the exec function then runs the curl command.
Can I run commands using exec in NodeJS in an Appwrite function?
The error: Error: Command failed: curl -X POST https://xxxxxx.erply.com/api/ -d "clientCode=xxxxxx&username=xxx@xxxx.xx&password=xxxxxxxxx&request=verifyUser&sendContentType=1" /bin/sh: curl: not found
at ChildProcess.exithandler (node:child_process:398:12)
at ChildProcess.emit (node:events:527:28)
at maybeClose (node:internal/child_process:1092:16)
at Socket.<anonymous> (node:internal/child_process:451:11)
at Socket.emit (node:events:527:28)
at Pipe.<anonymous> (node:net:709:12)
As it says, curl is not installed
But why are you exec'ing when you can make the API call in node?
curl not installed on the base machine?
In the container
which specific one? I just tried installing curl on 'appwrite' and got same result. I used docker exec -it appwrite /bin/sh then used apk add curl
Recommended threads
- Cloud Function Deployment Issue – Timeou...
Impossible to deploy a function for more than an hour. My project ID is: 69cc7a82000b42b8f5e2 Here's the error I get after waiting 15 minutes: Synchronous funct...
- Dart runtime functions are timing out an...
My appwrite function is not executing at all and showing the error in error logs: I tried redeploying. Still no luck. I have set the function to ise maximum re...
- Event-triggered function executes but pr...
Hello! I'm running self-hosted Appwrite 1.9.0. I have a Dart function (tried both dart-3.5 and dart-3.10 runtimes) with these events configured: ```teams.staff...