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
- Send Email Verification With REST
I am using REST to create a user on the server side after receiving form data from the client. After the account is successfully created i wanted to send the v...
- Use different email hosts for different ...
Hello, I have 2 projects and i want to be able to set up email templates in the projects. Both projects will have different email host configurations. I see ...
- Project in AppWrite Cloud doesn't allow ...
I have a collection where the data can't be opened. When I check the functions, there are three instances of a function still running that can't be deleted. The...