Back

[SOLVED] "user_oauth2_provider_error" Github App

  • 1
  • Self Hosted
  • Functions
  • Web
  • Webhooks
Drake
21 Oct, 2023, 15:41

either that or the _APP_VCS_GITHUB_CLIENT_ID or _APP_VCS_GITHUB_CLIENT_SECRET are incorrect?

TL;DR
Title: [SOLVED] GitHub App "user_oauth2_provider_error" Solution: The issue was resolved by adjusting the account permissions for the Email Address. It was set to read and write, but changing it to read only fixed the problem. The app also needed to be made public. The user also made sure the client secret and other variables were correct.
kampfmodz
21 Oct, 2023, 15:42

do i need to include Iv1 in the CLIENT_ID

Drake
21 Oct, 2023, 15:42

yep

kampfmodz
21 Oct, 2023, 15:44

is included, i tried a new client secret lets hope i made an mistake there

kampfmodz
21 Oct, 2023, 15:45

nope still the same

kampfmodz
21 Oct, 2023, 15:46

even says the the client secret was used in github

Drake
21 Oct, 2023, 15:46

Hmm seems like the GitHub app doesn't have access to your GitHub account...I don't really know why...

kampfmodz
21 Oct, 2023, 15:47

the app is owned by an organisation, is this the problem?

Drake
21 Oct, 2023, 15:48

Shouldn't be...I'm pretty sure our cloud GitHub app is owned by the org

Drake
21 Oct, 2023, 15:49

The GitHub app is public, right?

kampfmodz
21 Oct, 2023, 15:50

its a private github app it says

Drake
21 Oct, 2023, 15:51

Can you try making it public?

Drake
21 Oct, 2023, 15:51

It should be public regardless

kampfmodz
21 Oct, 2023, 15:52

i cant find something about that in the settings, how can i do that?

Drake
21 Oct, 2023, 15:53

It should be in advanced settings or something. It's near where you would delete the GitHub app

kampfmodz
21 Oct, 2023, 16:13

still the same, can i still limit who can install the app? not that everyone out there can access it

kampfmodz
21 Oct, 2023, 16:15

but i get appwrite | [Error] Timestamp: 2023-10-21T16:13:41+00:00 appwrite | [Error] Method: GET appwrite | [Error] URL: /v1/account appwrite | [Error] Type: Appwrite\Extend\Exception appwrite | [Error] Message: User (role: guests) missing scope (account) appwrite | [Error] File: /usr/src/code/app/controllers/general.php appwrite | [Error] Line: 552

kampfmodz
21 Oct, 2023, 17:04

i have good news, i fixed it

kampfmodz
21 Oct, 2023, 17:04

it was a silly mistake of mine

Drake
21 Oct, 2023, 17:04

What was the problem??

Drake
21 Oct, 2023, 17:05

I'm glad you figured it out <:appwriteparty:946072712915341333>

kampfmodz
21 Oct, 2023, 17:05

under Account Permissions the Email Address was set to read and write for some reason, i switched it to read only and now it works fine, thanks for your time and help

Drake
21 Oct, 2023, 17:05

Wow interesting...

Drake
21 Oct, 2023, 17:06

That's so confusing you had to take rights away...especially considering the error message

Drake
21 Oct, 2023, 18:05

[SOLVED] "user_oauth2_provider_error" Github App

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