Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues when testing connection from Bitbucket #19

Open
filipefmelo opened this issue Dec 18, 2020 · 0 comments
Open

Issues when testing connection from Bitbucket #19

filipefmelo opened this issue Dec 18, 2020 · 0 comments

Comments

@filipefmelo
Copy link

Hi I get the following stack trace when clicking the "test connection" button in the "Webhooks" section of Bitbucket:

[2020-12-18 12:15:01,730] ERROR in app: Exception on /hooks/9q9k8fb9w7dipxoo73tab1d8xw [POST]
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/flask/app.py", line 2447, in wsgi_app
    response = self.full_dispatch_request()
  File "/usr/lib/python2.7/site-packages/flask/app.py", line 1952, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/usr/lib/python2.7/site-packages/flask/app.py", line 1821, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "/usr/lib/python2.7/site-packages/flask/app.py", line 1950, in full_dispatch_request
    rv = self.dispatch_request()
  File "/usr/lib/python2.7/site-packages/flask/app.py", line 1936, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "bitbucket.py", line 315, in hooks
    response = send_simple_webhook(hook_path, "diagnostics:ping", "Bitbucket is testing the connection to Mattermost: " + request_id, alert_color)
  File "bitbucket.py", line 297, in send_simple_webhook
    return send_webhook_data(hook_path, data)
  File "bitbucket.py", line 270, in send_webhook_data
    headers = {'Content-Type': 'application/json'}
  File "/usr/lib/python2.7/site-packages/requests/api.py", line 108, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python2.7/site-packages/requests/api.py", line 50, in request
    response = session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python2.7/site-packages/requests/sessions.py", line 486, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python2.7/site-packages/requests/sessions.py", line 598, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python2.7/site-packages/requests/adapters.py", line 415, in send
    raise ConnectionError(err, request=request)
ConnectionError: ('Connection aborted.', gaierror(-2, 'Name or service not known'))
10.99.35.234 - - [18/Dec/2020 12:15:01] "POST /hooks/9q9k8fb9w7dipxoo73tab1d8xw HTTP/1.1" 500 -

Could you please point me the right direction?

Thank you in advance!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant