Back

[SOLVED] "Quick Start" Infinite loading when creating function

  • 1
  • Web
QuadWord
2 Sep, 2023, 00:04

now i am back to node-18.0,php-8.0,python-3.9,ruby-3.0 to be able to use the quickstart examples

TL;DR
The user was experiencing infinite loading when creating a function. The solution was to use the "manually" option instead of the GitHub integration. Additionally, they needed to enable the node-18 runtime and include all quickstart runtimes in their .env file. There was also a bug that was fixed in a specific pull request.
Drake
2 Sep, 2023, 00:19

yes, because the template is node-18. so because you didn't have that enabled, the console throws an exception

QuadWord
2 Sep, 2023, 01:12

Yes. But reverting the default runtimes did not solve the Quickstart Infinit Loading thumbnails. The error and loading indicators still exist. Maybe i missunderstood "Found the problem! It looks like this happens when Appwrite doesn't have quickstart runtime enabled." What exactly is to do to fix it ?

Drake
2 Sep, 2023, 01:14

What did you revert it to?

Drake
2 Sep, 2023, 01:16

The fix is in this PR: https://github.com/appwrite/console/pull/527

Or you can enable the node-18 runtime

QuadWord
2 Sep, 2023, 01:23

I did enable node-18 as stated above: "now i am back to node-18.0,php-8.0,python-3.9,ruby-3.0 to be able to use the quickstart examples" but: "But reverting to the default runtimes did not solve the Quickstart Infinit Loading thumbnails."

Drake
2 Sep, 2023, 01:26

Yes of course....you removed it so it's back

QuadWord
2 Sep, 2023, 01:31

But did you not just say that re-enabling node-18 would solve the infinit-loading-tiles ?!? Maybe i just misunderstood.

Drake
2 Sep, 2023, 01:32

You need that runtime for it to work so if you remove it, it won't work anymore

QuadWord
2 Sep, 2023, 01:38

Then please correct me: if i switch my .env to other runtime versions, are they not automatically removed / added based on the .env config when if do a "docker compose up -d" ?

Drake
2 Sep, 2023, 01:39

Yes they are

QuadWord
2 Sep, 2023, 01:40

Because i did configure other runtime versions BUT then i reverted to the original config which includes node-18.

QuadWord
2 Sep, 2023, 01:41

So node-18 should be enabled but i still have the loading-spinners.

Drake
2 Sep, 2023, 01:44

What are all your Runtimes?

QuadWord
2 Sep, 2023, 01:46

_APP_FUNCTIONS_RUNTIMES=node-18.0,php-8.0,python-3.9,ruby-3.0

Drake
2 Sep, 2023, 01:46

You also need dart-2.17

QuadWord
2 Sep, 2023, 01:51

Now it works. So the solution is to have all quickstart runtimes active. Not only node-18.

D5
2 Sep, 2023, 09:24

[SOLVED] "Quick Start" Infinite loading when creating function

armanhadi
4 Sep, 2023, 11:52
armanhadi
4 Sep, 2023, 11:53

I have this problem with function , when i click on the github it direct me to github but with not found page

ideclon
4 Sep, 2023, 12:39

Please find one of the many <#1072905050399191082> posts talking about this issue.

QuadWord
4 Sep, 2023, 14:21

@armanhadi first you need to setup a GitApp and the config: https://appwrite.io/docs/configuration#git

Additional to the docs you need to enable the ""Request user authorization (OAuth) during installation"" checkbox during the GitApp setup.

If you have done all the things (adding values in your .env and a container recreate) then you will probably encounter 1-2 additional errors and you can continue reading: https://discord.com/channels/564160730845151244/1147235730599460915 and then probably https://discord.com/channels/564160730845151244/1147460737065820210

benemma
4 Sep, 2023, 16:18

Perhaps the team should add all quickatart runtime to the ENV file by default mine came with just node-16 and was using node-18 so couldn't find modems runtime in the function templates but solved that now by changing the version as well as adding all the missing quick start runtime

armanhadi
5 Sep, 2023, 05:53

Thank you for your response. As I read Appwrite documentation about Github app , it doesn't mention anything about the function. However, we should use Github app to make sure that the function works. It's quite confusing

QuadWord
5 Sep, 2023, 07:56

You don't have to use the GitHub integration. On the functions page there are 2 (very small) links on the bottom. One is for creating functions with the CLI (but the newest CLI is currently not working and will be fixed soon ... )

but: the other one says "manually" which worked for me just fine and does not need the the Github integration. You just uipload your function in the following screen and go from there ...

Use "manually" if you want to skip the Github integration.

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more