Back

[SOLVED] 404 redirect when trying to configure github in 1.4.1

  • 0
  • Functions
  • Web
benemma
4 Sep, 2023, 10:27
TL;DR
The issue of a 404 redirect when trying to configure GitHub in version 1.4.1 has been solved. The problem was due to a missing `_APP_VCS_GITHUB_APP_NAME` variable. To resolve it, follow these steps: 1. Go to the Appwrite `.env` file and set the value of the `Webhook secret` input to something random. 2. Set the same value in the Appwrite `.env` file. 3. Make sure that the GitHub App edit page has the corresponding env variables related to GitHub properly configured. 4. Generate a private key by going to Settings -> Developer Settings -> GitHub
D5
4 Sep, 2023, 10:30

You need to setup the corresponding env variables related to GitHub

Meldiron
4 Sep, 2023, 10:51

Good catch tho, I am making task to throw nice error instead of invalid redirect.

benemma
4 Sep, 2023, 11:23

GITHUB_PRIVATE_KEY can mean many things especially in the context of github, so which key specifically assuming the its an organisation app

Meldiron
4 Sep, 2023, 11:24

One from Settings -> Developer Settings -> GitHub Apps -> [YOUR APP] -> Private keys.

You click Generate. It downloads file. You put content of that file into the variable, surrounded by "" (double quotes)

Meldiron
4 Sep, 2023, 11:25

We tried our best to name variables as close to names coming form GitHub App edit page

benemma
4 Sep, 2023, 12:02

The documentation seems to be elusive on the the configuration of the webhook secret, where and how do we do that is the webhook secret the same as the webhook?

Meldiron
4 Sep, 2023, 12:04

Same page as I mentioned above, there is input for Webhook secret. type anything in there, something random. Then set same value in Appwrite .env.

Drake
4 Sep, 2023, 15:49

this specific problem is due to missing _APP_VCS_GITHUB_APP_NAME

benemma
4 Sep, 2023, 16:13

[SOLVED] 404 redirect when trying to configure github in 1.4.1

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