Back

[SOLVED] Functions not working

  • 0
  • Web
Meldiron
25 Oct, 2023, 08:48

It should work the same way for organization

TL;DR
Functions were not working initially, but the issue has been solved. The problem was that one of the callback URLs was deleted in the flow. The solution was to add it back. The user also tried setting `_APP_DOMAIN_FUNCTIONS` to the same value as `_APP_DOMAIN` and `functions.appwrite.example.com`, but encountered errors in the logs. They will divert their attention elsewhere for now. There was also a related error of "Identity not found" which will be checked by someone else. To troubleshoot the problem, the user was asked to check the Docker logs for `appwrite`. The issue persisted, so the user will try
elnur
25 Oct, 2023, 08:49
elnur
25 Oct, 2023, 08:50

Doesn't seem to work.

elnur
25 Oct, 2023, 08:50

One thing of note, the APP_DOMAIN is the same as _APP_FUNCTIONS_DOMAIN

Meldiron
25 Oct, 2023, 08:50

Hmm this is annoying πŸ€”There is issue in GitHub UI when it doesnt let you save without changes. I use trick when I switch to specific repos, then back to all repos. That allows saving without changes. But it seems like that isnt allowed for orgnaizations

Meldiron
25 Oct, 2023, 08:51

Thats an issue, but should not affect this flow. I would recommend using some subdomain for function domains. If my domain is backend.mycompany.com, I would do functions domain functions.backend.mycompany.com

elnur
25 Oct, 2023, 08:51

I will change it.

elnur
25 Oct, 2023, 08:51

Do I need to also change DNS settings or should it work the same?

Meldiron
25 Oct, 2023, 08:52

You will need to change DNS settings, and also configure wildcard certificate for the domain. We plan to write article soon on how to do it with DigitalOcean NS adapter for Traefik.

Tho if you dont need those function domains, you can simply ignore it. Or you could avoid using those auto-generated domains, and use custom domains. those dont require wildcard certificates, and are very easy to set up.

Meldiron
25 Oct, 2023, 08:53

Regarding your problem with GitHub installation, it should again ask for "Authorize" if you uninstall application and try to install it from Appwrite Console again.

elnur
25 Oct, 2023, 08:54

I'll try again and uninstall it.

elnur
25 Oct, 2023, 08:56

Same issue as before.

Meldiron
25 Oct, 2023, 08:57

Hmm it says it was successful. Can you check docker compose logs appwrite?

elnur
25 Oct, 2023, 08:58
Meldiron
25 Oct, 2023, 08:59

Identity not found might be related. let me ask @Steven to check this

elnur
25 Oct, 2023, 08:59

Thanks for your help.

Meldiron
25 Oct, 2023, 08:59

(steven is US timezone, it will take few hours to be here)

elnur
25 Oct, 2023, 08:59

No worries. I'll divert my attention elsewhere in the meantime

elnur
25 Oct, 2023, 09:05

Small update:

I have now tried to set _APP_DOMAIN_FUNCTIONS

To the same as _APP_DOMAIN: appwrite.example.com

and tried this as well: functions.appwrite.example.com

Got the same successful imported message but these errors were returned in the logs.

elnur
25 Oct, 2023, 09:07

After checking the guide again and double checking the github app it seems that one of the callback urls were deleted somewhere in the flow. I'll try to add it back.

elnur
25 Oct, 2023, 09:09

That was it.

elnur
25 Oct, 2023, 09:09

Sheesh.

elnur
25 Oct, 2023, 09:09

Sorry for wasting your time.

Drake
25 Oct, 2023, 17:07

no worries! I'm glad you were able to figure it out and it helps us to see possible error messages

Drake
25 Oct, 2023, 17:07

[SOLVED] Functions not working

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