console icon indicating copy to clipboard operation
console copied to clipboard

šŸ› Bug Report: 'TypeError: o[0].rules[0] is undefined' when trying to execute function

Open hej2010 opened this issue 1 year ago • 2 comments

šŸ‘Ÿ Reproduction steps

Go to a function and press Execute in the console.

šŸ‘ Expected behavior

The execution window should show.

šŸ‘Ž Actual Behavior

The execution window does not show and the page content disappears. Logs:

Uncaught (in promise) TypeError: o[0].rules[0] is undefined
    Immutable 43
    <anonymous> https://website.com/console/project-0/functions/function:187
    promise callback* https://website.com/console/project-0/functions/function:186
    promise callback* https://website.com/console/project-0/functions/function:180

Error in DeploymentDomains.XXX.js bild

šŸŽ² Appwrite version

Different version (specify in environment)

šŸ’» Operating system

Linux

🧱 Your Environment

Appwrite 1.6.0 Appwrite console 5.0.12 Self-hosted No function domains

šŸ‘€ Have you spent some time to check if this issue has been raised before?

  • [X] I checked and didn't find similar issue

šŸ¢ Have you read the Code of Conduct?

hej2010 avatar Sep 20 '24 10:09 hej2010

If I create a domain for the function it works and I can execute it, but as soon as I delete the domain it gets the same error.

hej2010 avatar Sep 20 '24 10:09 hej2010

I also have the issue with functions with no domains on it.

File where the error happen : https://github.com/appwrite/console/blob/6b618f2bb05131fdf3c8c342bb71da1f2cc04f92/src/routes/(console)/project-%5Bproject%5D/functions/function-%5Bfunction%5D/deploymentDomains.svelte#L12

Related discord support post : https://discord.com/channels/564160730845151244/1286406438666895544

ibaraki-douji avatar Sep 22 '24 21:09 ibaraki-douji

I’m encountering the same problem with the same error in the browser console. I’m having trouble creating a new domain for the functions, which means I have to recreate them from GitHub when I want to test them from the console. This is really annoying.

TheAndreDev avatar Sep 26 '24 15:09 TheAndreDev