You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
log.Printf("could not fetch credentials for the app: %v", err)
this causes an exception on callback and we need to handle it properly. The callback from github sometimes look like this: /github/callback?installation_id=1234567890&setup_action=update
In this case we need to handle a missing code parameter and then lookup the installation_id from the db records then perform the update accordingly somehow TBD
The text was updated successfully, but these errors were encountered:
During the installation of Digger as a GitHub App, Digger sets Request user authorization (OAuth) during installation. This leads to the callback being called as an installation step. As a result code is provided to the callback, to be exchanged by a user access token. On subsequent update requests on the apps setting page, the code won't be send any more. Thus, with your setup, you can expect code for the first time installation, and the following request to the callback url won't provide it. See here
Moreover, you should not relay on the installation_id provided to the callback url, see here.
Anyway, are there any plans to fix this issue. I'm currently unable to update the settings to include additional repositories because of the code dependency. The workaround is to re-install the app again, which is not a good experience.
@asosso have you tried to add another repo after you've installed the application for the first time? In my case, no code parameter is send and Digger (also v0.6.97) errors out.
in some cases github when an app installation is being updated it decides to not send a
code
paramter which we expect to recieve here:digger/backend/controllers/github.go
Lines 1297 to 1305 in 1e88db8
this causes an exception on callback and we need to handle it properly. The callback from github sometimes look like this: /github/callback?installation_id=1234567890&setup_action=update
In this case we need to handle a missing code parameter and then lookup the installation_id from the db records then perform the update accordingly somehow TBD
The text was updated successfully, but these errors were encountered: