console icon indicating copy to clipboard operation
console copied to clipboard

🐛 Bug Report: Can't select runtime (python, phd, node) in self-hosted appwrite function template

Open vule20 opened this issue 10 months ago • 6 comments

👟 Reproduction steps

Hey all. I'm hosting my own appwrite server and I've succesfully connected my appwrite to my github app. However, for some function templates such as generate pdf, I can't select runtime for deployment. For the starter template, I was able to choose different runtime type

👍 Expected behavior

It should be able to select several runtime types

👎 Actual Behavior

Can't select runtime (python, phd, node) in self-hosted appwrite function template

🎲 Appwrite version

Version 1.4.x

💻 Operating system

Linux

🧱 Your Environment

I use appwrite 1.4.13.

👀 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?

vule20 avatar Apr 05 '24 16:04 vule20

https://github.com/appwrite/console/assets/63137043/8658677f-fc64-465d-a33f-752a26f6c0f8

vule20 avatar Apr 05 '24 16:04 vule20

This happens because the only supported runtime for the function on your appwrite instance is node-18.0 and also due to this which doesn't seem to set a visible default runtime item.

ItzNotABug avatar Apr 06 '24 07:04 ItzNotABug

Hey Appwrite Team, Can I be assigned to work on this?

ItzNotABug avatar Apr 06 '24 07:04 ItzNotABug

Thanks for the reply. Actually the function Generate PDF from Appwrite template supports multiple runtime types.

vule20 avatar Apr 06 '24 07:04 vule20

Yes, but this happens when the runtime installed on your appwrite instance is only one of the supported ones. Dropdown is shown when you have more than one supported runtime.

ItzNotABug avatar Apr 06 '24 07:04 ItzNotABug

Assigning @ItzNotABug , his findings seem relevant. Thanks both for participating in the issue, can' wait to review the PR 🥳

Meldiron avatar Apr 06 '24 09:04 Meldiron