Back

Weird Redirect After Trying to Connect GitHub to Functions

  • 0
  • Self Hosted
martino
11 Mar, 2024, 22:10

To reproduce I start with Create Function -> Connect Git Respository (GitHub) -> Select Personal GitHub Account -> Install and Authorize -> "You are being redirected to... (GitHub -> Appwrite) -> and then I land on this page, and i'm note 100% where to start troubleshooting, maybe I setup my .env incorrectly? maybe i need an HTTPS domain? the error says "general_unknown" so there's not a lot to go off :sadblob:

Page Error after being Redirected: {"message":"Server Error","code":500,"type":"general_unknown","version":"1.5.1"}

TL;DR
Developers having trouble connecting GitHub to Functions in Appwrite stack. Error message indicates DNS lookup resolve failure for Redis. Check if Redis and MariaDB are online. Check appwrite container logs. When redirecting from GitHub to Appwrite, landing on a 500 error with "general_unknown" type. Possible issues with .env setup or HTTPS domain.
Steven
11 Mar, 2024, 22:19

check your appwrite container logs

martino
11 Mar, 2024, 22:32

this is the error - going to dig in a bit to see if this is something I can figure out on my own but will post here anyway:

TypeScript
Stack trace:
#0 /usr/src/code/vendor/utopia-php/queue/src/Queue/Connection/Redis.php(180): Redis->connect('redis', 6379)
#1 /usr/src/code/vendor/utopia-php/queue/src/Queue/Connection/Redis.php(76): Utopia\Queue\Connection\Redis->getRedis()
#2 /usr/src/code/vendor/utopia-php/queue/src/Queue/Connection/Redis.php(65): Utopia\Queue\Connection\Redis->rightPop('utopia-queue.qu...', 5)
#3 /usr/src/code/vendor/utopia-php/queue/src/Queue/Server.php(199): Utopia\Queue\Connection\Redis->rightPopArray('utopia-queue.qu...', 5)
#4 [internal function]: Utopia\Queue\Server->Utopia\Queue\{closure}('0')
#5 /usr/src/code/vendor/utopia-php/queue/src/Queue/Adapter/Swoole.php(37): call_user_func(Object(Closure), '0')
#6 [internal function]: Utopia\Queue\Adapter\Swoole->Utopia\Queue\Adapter\{closure}(Object(Swoole\Process\Pool), '0')
#7 {main}
  thrown in /usr/src/code/vendor/utopia-php/queue/src/Queue/Connection/Redis.php on line 180```
martino
11 Mar, 2024, 22:36

progress! a different fancier error:

Steven
11 Mar, 2024, 22:41

please use 3 backticks for multiline code-like things

Steven
11 Mar, 2024, 22:42

weird...this seems to mean your appwrite stack isnt working right...is redis and mariadb online and functioning okay?

martino
11 Mar, 2024, 22:53

sorry just quickly highlighted and code formatted haha - silly discord ux

martino
11 Mar, 2024, 22:54

uhhhhh everything generally seems fine - here's my docker ps output if that helps

martino
11 Mar, 2024, 22:54
martino
11 Mar, 2024, 22:54

it's just functions that i'm having trouble with

martino
11 Mar, 2024, 22:55

maybe i should just go back to appwrite cloud and take a hit on latency 🫠

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