Project

General

Profile

Bug #5210

webook problems

Added by Marcin Kuzminski [staff] over 2 years ago. Updated over 2 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
-
Target version:
Start date:
13.02.2017
Due date:
% Done:

0%

Estimated time:
Sorting:
Commit Number:
Affected Version:

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'

History

#1 Updated by Marcin Kuzminski [staff] over 2 years ago

  • Target version set to v4.7

#2 Updated by Marcin Kuzminski [staff] over 2 years ago

  • Status changed from New to In Progress

#3 Updated by Redmine Integration over 2 years ago

pullrequest created by marcink (status: under_review). https://internal-code.rhodecode.com/rhodecode-enterprise-ce/pull-request/2861

#4 Updated by Redmine Integration over 2 years ago

  • Status changed from In Progress to Resolved

Also available in: Atom PDF