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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃悰 Bug Report: Deno Function Runtime Doesn't Handle Errors #4634

Open
2 tasks done
stnguyen90 opened this issue Nov 3, 2022 · 2 comments
Open
2 tasks done

馃悰 Bug Report: Deno Function Runtime Doesn't Handle Errors #4634

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

Comments

@stnguyen90
Copy link
Contributor

馃憻 Reproduction steps

  1. Deploy a deno function like:
export default async function (req: any, res: any) {
	throw new Error('panic!');
}
  1. Execute the function

馃憤 Expected behavior

The execution has stderr with the panic! message

馃憥 Actual Behavior

stderr says Code file not found. like:

{
  "$id": "63643a6c39fdceebd60f",
  "$createdAt": "2022-11-03T22:02:20.237+00:00",
  "$updatedAt": "2022-11-03T22:02:23.212+00:00",
  "$permissions": [
    "read(\"user:62f160ce77c57e6e6ac3\")"
  ],
  "functionId": "err",
  "trigger": "http",
  "status": "failed",
  "statusCode": 500,
  "response": "",
  "stdout": "",
  "stderr": "Code file not found.",
  "duration": 0.0116169
}

馃幉 Appwrite version

Version 1.0.x

馃捇 Operating system

Linux

馃П Your Environment

No response

馃憖 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?

@stnguyen90 stnguyen90 added bug Something isn't working product / functions Fixes and upgrades for the Appwrite Functions. labels Nov 3, 2022
@merabtenei
Copy link

merabtenei commented Nov 6, 2022

I experienced the same thing with Python3.9 backend just reporting Internal Runtime Error every time, I then switched to NodeJS.

@stnguyen90
Copy link
Contributor Author

@merabtenei I think the python problem is actually related to #4594

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

2 participants