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
- Github App "Failed to retrieve access to...
When trying to connect the Github App on 1.8.1 I recieve this error: ```[Error] Method: GET [Error] URL: /v1/vcs/github/callback [Error] Type: Exception [Error]...
- Update from 1.8 to 1.8.1 failing
I have spent the past 2 hours trying to figure this out but I really dont know what to do. 1.8. was a fresh install because the upgrade from 1.7.4 was a total m...
- Realtime not working for some tables
Hi, I've got an issue where I can setup a realtime connection to listen to some tables, but some not all. I have two tables `history` and `users`. Both can be ...