Is these the logs that you were looking for? And in case you are curious I am using ngrok for my proxy.
172.19.0.1 - - [16/Oct/2019:11:49:19 +0000] “GET /api/0/organizations/walls-metal-roofing/config/integrations/ HTTP/1.0” 200 13903 “Sign In | Sentry” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.120 Safari/537.36”
172.19.0.1 - - [16/Oct/2019:11:49:19 +0000] “GET /api/0/organizations/walls-metal-roofing/repos/?status=unmigratable HTTP/1.0” 200 765 “Sign In | Sentry” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.120 Safari/537.36”
172.19.0.1 - - [16/Oct/2019:11:49:24 +0000] “GET /organizations/walls-metal-roofing/integrations/bitbucket/setup/? HTTP/1.0” 302 862 “Sign In | Sentry” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.120 Safari/537.36”
172.19.0.1 - - [16/Oct/2019:11:49:30 +0000] “GET /extensions/bitbucket/descriptor/ HTTP/1.0” 200 800 “-” “python-requests/2.19.1”
172.19.0.1 - - [16/Oct/2019:11:49:45 +0000] “GET /extensions/bitbucket/descriptor/ HTTP/1.0” 200 800 “-” “python-requests/2.19.1”
Traceback (most recent call last):
File “/usr/local/lib/python2.7/site-packages/sentry/api/base.py”, line 90, in handle_exception
response = super(Endpoint, self).handle_exception(exc)
File “/usr/local/lib/python2.7/site-packages/sentry/api/base.py”, line 190, in dispatch
response = handler(request, *args, **kwargs)
File “/usr/local/lib/python2.7/site-packages/sentry/integrations/bitbucket/installed.py”, line 22, in post
data = BitbucketIntegrationProvider().build_integration(state)
File “/usr/local/lib/python2.7/site-packages/sentry/integrations/bitbucket/integration.py”, line 176, in build_integration
‘name’: principal_data[‘username’],
KeyError: ‘username’
172.19.0.1 - - [16/Oct/2019:11:49:45 +0000] “POST /extensions/bitbucket/installed/ HTTP/1.0” 500 329 “-” “python-requests/2.19.1”
172.19.0.1 - - [16/Oct/2019:11:49:46 +0000] “POST /extensions/bitbucket/uninstalled/ HTTP/1.0” 400 211 “-” “python-requests/2.19.1”
172.19.0.1 - - [16/Oct/2019:11:49:46 +0000] “GET /api/0/broadcasts/ HTTP/1.0” 200 511 “Sign In | Sentry” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.120 Safari/537.36”
And as far as where the error happens… Its on the bitbucket page after making a request to sentry.
This is the error that the internal Project gives me. Sentry With additional body details.
{
baseApiUrl: https://api.bitbucket.org,
baseUrl: https://bitbucket.org,
clientKey: connection: 3687935,
eventType: installed,
key: sentry.wallsmetalroofing.com.bitbucket,
principal: {
account_id: …,
account_status: active,
created_on: 2018-05-11T15:02:26.970547+00: 00,
display_name: Trevor …,
has_2fa_enabled: True,
is_staff: False,
links: {},
nickname: …,
properties: {},
type: user,
uuid: { … }
},
productType: bitbucket,
publicKey: …/…/…,
sharedSecret: [ Filtered ],
user: {
account_id: …,
account_status: active,
created_on: 2018-05-11T15:02: 26.970547+00:00,
display_name: Trevor …,
has_2fa_enabled: True,
is_staff: False,
links: {},
nickname: …,
properties: {},
type: user,
uuid: { … }
}
}
As far as install goes. I simply rerun the install.sh every time I change any of the config files.