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
- TablesDB `updateRows` returns `database_...
Hi Appwrite team! I’m seeing a strange issue with TablesDB bulk row updates on a self-hosted Appwrite instance. **Environment** - Appwrite self-hosted `1.9.0` ...
- [SOLVED] Realtime Missing Channels
```js useEffect(() => { let subscription: RealtimeSubscription; async function loadChips() { try { const {rows: chi...
- Functions executed by events does not ap...
Hello, Running self-hosted Appwrite version 1.9.0 (with console 7.8.26). When functions are triggered by an event (eg. databases.\*tables.\*.rows.\*.create) doe...