Bug #5210
openwebook problems
0%
Description
i create webhook with url: http://:@/job//buildWithParameters?token=&rc_pullid=${pull_request_id}
[10:03]
event: pullrequest created
[10:03]
if i create pull request from web interface - all ok: jenkins started build
[10:04]
if i create pull request from api method create_pull_request - i get error
[10:04]
2017-02-13 15:29:32.214 ERROR [rhodecode.integrations] failure occured when sending event to integration ")>
Traceback (most recent call last):
File "/opt/rhodecode/store/nbkrz4134nvflk843f05al8y2qdrl5ma-python2.7-rhodecode-enterprise-ce-4.6.0/lib/python2.7/site-packages/rhodecode/integrations/init.py", line 54, in integrations_event_handler
integration_model.send_event(integration, event)
File "/opt/rhodecode/store/nbkrz4134nvflk843f05al8y2qdrl5ma-python2.7-rhodecode-enterprise-ce-4.6.0/lib/python2.7/site-packages/rhodecode/model/integration.py", line 99, in send_event
handler.send_event(event)
File "/opt/rhodecode/store/nbkrz4134nvflk843f05al8y2qdrl5ma-python2.7-rhodecode-enterprise-ce-4.6.0/lib/python2.7/site-packages/rhodecode/integrations/types/webhook.py", line 233, in send_event
data = event.as_dict()
File "/opt/rhodecode/store/nbkrz4134nvflk843f05al8y2qdrl5ma-python2.7-rhodecode-enterprise-ce-4.6.0/lib/python2.7/site-packages/rhodecode/events/pullrequest.py", line 38, in as_dict
data = super(PullRequestEvent, self).as_dict()
File "/opt/rhodecode/store/nbkrz4134nvflk843f05al8y2qdrl5ma-python2.7-rhodecode-enterprise-ce-4.6.0/lib/python2.7/site-packages/rhodecode/events/repo.py", line 118, in as_dict
data = super(RepoEvent, self).as_dict()
File "/opt/rhodecode/store/nbkrz4134nvflk843f05al8y2qdrl5ma-python2.7-rhodecode-enterprise-ce-4.6.0/lib/python2.7/site-packages/rhodecode/events/base.py", line 63, in as_dict
'actor_ip': self.actor_ip,
File "/opt/rhodecode/store/nbkrz4134nvflk843f05al8y2qdrl5ma-python2.7-rhodecode-enterprise-ce-4.6.0/lib/python2.7/site-packages/rhodecode/events/base.py", line 49, in actor_ip
return self.request.user.ip_addr
AttributeError: 'Request' object has no attribute 'user'