appwrite / console

The Console that makes Appwrite tick from the browser šŸ–„
https://appwrite.io
BSD 3-Clause "New" or "Revised" License
331 stars 141 forks source link

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

Closed hej2010 closed 1 month ago

hej2010 commented 1 month ago

šŸ‘Ÿ 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?

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

hej2010 commented 1 month ago

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.

ibaraki-douji commented 1 month ago

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

TheAndreDev commented 1 month ago

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.