only adding the 'ali-oss' node dependency and not referencin, Unable to execute function
- 0
- Self Hosted
- Functions
i use appwrite 1.3.6、function nodejs16.0
I created a default function using cli, only adding the 'ali-oss' node dependency and not referencing it in the JS file (declared only in package. json). After deploying the function, prompt after execution:
only adding the 'ali-oss' node dependency and not referencin, Unable to execute function
I've same error on all my function, but this havn't impact on function
If you run it, you'll see your JSON
But function works.. So I never search more. Perhaps @Steven have an idea..
The function did not execute correctly, this line of code threw an error and stopped running
What line?
My English is not very good, there may be expression errors. You can create functions to reproduce the problem through the one I described above
@Steven
How did you deploy your function?
ya...adding this library causes an error:
00:56:51 0|server | TypeError: Cannot read properties of undefined (reading 'split')
00:56:51 0|server | at toIdentifier (/usr/local/src/node_modules/http-errors/index.js:257:14)
00:56:51 0|server | at forEachCode (/usr/local/src/node_modules/http-errors/index.js:228:16)
00:56:51 0|server | at Array.forEach (<anonymous>)
00:56:51 0|server | at populateConstructorExports (/usr/local/src/node_modules/http-errors/index.js:226:9)
00:56:51 0|server | at Object.<anonymous> (/usr/local/src/node_modules/http-errors/index.js:29:1)
00:56:51 0|server | at Module._compile (node:internal/modules/cjs/loader:1105:14)
00:56:51 0|server | at Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
00:56:51 0|server | at Module.load (node:internal/modules/cjs/loader:981:32)
00:56:51 0|server | at Module._load (node:internal/modules/cjs/loader:827:12)
00:56:51 0|server | at Module.require (node:internal/modules/cjs/loader:1005:19)
im not really sure why 🤷🏼♂️
@Steven This issue has been bothering me for a long time. How can I view the detailed operation logs?
You can try looking at the docker logs from the runtime container
Recommended threads
- After assigning a domain to my Dart func...
I’ve attached the images. Could anyone please explain how this execution is being performed?
- how to access the value of account statu...
- Redirect from clicking team invite link ...
Hi all! Pretty new to app development in general so this might be something more generic than appwrite, but I've found (after reading the docs for the Teams API...