Quantcast
Channel: Mattermost Discussion Forums - Latest posts
Viewing all articles
Browse latest Browse all 25778

Webhooks not working from GitLab

$
0
0

I have a Problems with the new hooks introduced in v1.1
When I do a Hook over the curl command like shown in the example Incoming Webhooks, it all works great.
But when I let GitLab do the hook. It does not work.

Using CURL

curl -k -i -X POST -d 'payload={"text": "Hello, this is some text."}' https://mattermost.private.org/hooks/on4fee1tkiyydkifc1sx1u535o                                                    
HTTP/1.1 200 OK
Server: nginx/1.4.7
Date: Thu, 29 Oct 2015 11:33:23 GMT
Content-Type: text/plain
Content-Length: 2
Connection: keep-alive
X-Ratelimit-Limit: 10
X-Ratelimit-Remaining: 9
X-Ratelimit-Reset: 1
X-Request-Id: 657thq75ipr75c45p1p8acaquh
X-Version-Id: 1.1.0.1446116526

Mattermost ./platform log:

Oct 29 12:33:23 mattermost platform[1657]: [10/29/15 12:33:23] [DEBG] /hooks/on4fee1tkiyydkifc1sx1u535o

Using GitLab

I cant figure out how to crawl the HTTP request, so all I have is the production.log output of GitLab.

gitlab/production.log

Started GET "/td/game-prototype/hooks/32/test" for xxx.xxx.xxx.xxx at 2015-10-29 13:20:38 +0100
Processing by Projects::HooksController#test as HTML
  Parameters: {"namespace_id"=>"td", "project_id"=>"game-prototype", "id"=>"32"}
Redirected to https://git.devcontrol.org/td/game-prototype/hooks
Completed 302 Found in 159ms (ActiveRecord: 9.8ms)
Started GET "/td/game-prototype/hooks" for xxx.xxx.xxx.xxx at 2015-10-29 13:20:38 +0100
Processing by Projects::HooksController#index as HTML
  Parameters: {"namespace_id"=>"td", "project_id"=>"game-prototype"}
Completed 200 OK in 200ms (Views: 97.4ms | ActiveRecord: 14.8ms)

Mattermost ./platform log:

Oct 29 12:23:10 mattermost platform[1657]: [10/29/15 13:20:39] [EROR] /hooks/on4fee1tkiyydkifc1sx1u535o:incomingWebhook code=500 rid=crx48kysxjnz5xrydrt3qtih8y uid= ip=192.168.1.15 No text specified [details: ]

What I have tried

  • Disabling SSL
  • Serval DNS configurations ( I know, why bother, but I just wanted to be sure ).

There seems to be a bug that passes the travis-ci tests?? see: https://travis-ci.org/mattermost/platform/jobs/86545106#L2427


Viewing all articles
Browse latest Browse all 25778

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>