Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 Bug Report: ali-oss Doesn't Work in Node Runtime #5642

Open
2 tasks done
wilhantian opened this issue Jun 3, 2023 · 2 comments
Open
2 tasks done

🐛 Bug Report: ali-oss Doesn't Work in Node Runtime #5642

wilhantian opened this issue Jun 3, 2023 · 2 comments
Labels
bug Something isn't working product / functions Fixes and upgrades for the Appwrite Functions.

Comments

@wilhantian
Copy link

👟 Reproduction steps

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:
[Error] Type: Exception
[Error] Message: An internal curl error has occurred within the executor! Error Msg: Connection refused
[Error] File: /usr/src/code/app/executor.php
[Error] Line: 541

👍 Expected behavior

Unable to execute function

👎 Actual Behavior

Properly execute functions

🎲 Appwrite version

Version 1.3.x

💻 Operating system

Linux

🧱 Your Environment

I use Appwrite 1.3.6,functions Node16.0

👀 Have you spent some time to check if this issue has been raised before?

  • I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

@wilhantian wilhantian added the bug Something isn't working label Jun 3, 2023
@Haimantika
Copy link
Contributor

Hi @wilhantian 👋 did you check the appwrite-executor logs? What does it show?

@stnguyen90 stnguyen90 self-assigned this Jun 16, 2023
@stnguyen90 stnguyen90 added the product / functions Fixes and upgrades for the Appwrite Functions. label Jun 16, 2023
@stnguyen90
Copy link
Contributor

FYI, this was discussed on Discord.

As mentioned on Discord, I ran this manually using Open Runtimes and got the following 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)

It seems ali-oss modifies some libraries that causes some incompatibility with Open Runtimes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working product / functions Fixes and upgrades for the Appwrite Functions.
Projects
None yet
Development

No branches or pull requests

3 participants