{"action":"created","issue":{"url":"https://api.github.com/repos/jovandeginste/jenkins-mattermost-plugin/issues/6","repository_url":"https://api.github.com/repos/jovandeginste/jenkins-mattermost-plugin","labels_url":"https://api.github.com/repos/jovandeginste/jenkins-mattermost-plugin/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/jovandeginste/jenkins-mattermost-plugin/issues/6/comments","events_url":"https://api.github.com/repos/jovandeginste/jenkins-mattermost-plugin/issues/6/events","html_url":"https://github.com/jovandeginste/jenkins-mattermost-plugin/issues/6","id":141500754,"number":6,"title":"Quick question about my testing Jenkins connection with mattermost","user":{"login":"pdclxf","id":17897873,"avatar_url":"https://avatars.githubusercontent.com/u/17897873?v=3","gravatar_id":"","url":"https://api.github.com/users/pdclxf","html_url":"https://github.com/pdclxf","followers_url":"https://api.github.com/users/pdclxf/followers","following_url":"https://api.github.com/users/pdclxf/following{/other_user}","gists_url":"https://api.github.com/users/pdclxf/gists{/gist_id}","starred_url":"https://api.github.com/users/pdclxf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pdclxf/subscriptions","organizations_url":"https://api.github.com/users/pdclxf/orgs","repos_url":"https://api.github.com/users/pdclxf/repos","events_url":"https://api.github.com/users/pdclxf/events{/privacy}","received_events_url":"https://api.github.com/users/pdclxf/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-03-17T07:18:39Z","updated_at":"2016-03-18T08:30:35Z","closed_at":null,"body":"Hi\r\n\r\nNice to meet you, today i am playing mattermost with my Jenkins, using Mattermost Notification Plugin version 1.4.0\r\nBut unlucky i find that's an access denied issue, appreciate that your advise\r\n\r\nMy incoming webhooks is OK, as when i run below command, it can shows the message\r\ncurl -i -X POST -d 'payload={\"text\": \"Hello, this is some text.\\nThis is more text.\"}' http://<my host>:8065/hooks/8g6y9awyjpdq7d1aff7wfnhh8a\r\n\r\n\r\nBut after i did the config in Jenkins like below. it fails as of access denied\r\nJenkins config:\r\nEndpoint:http://<my host>:8065/hooks/8g6y9awyjpdq7d1aff7wfnhh8a\r\nChannel:<my channel>\r\nBuild Server URL:http://<my build server>:8080/\r\n\r\nerror:\r\nMar 16, 2016 9:19:33 AM jenkins.plugins.mattermost.StandardMattermostService publish\r\nINFO: Posting: to  icon: , on http://<my host>:8065/hooks/8g6y9awyjpdq7d1aff7wfnhh8a: Mattermost/Jenkins plugin: you're all set! (using ) good\r\nMar 16, 2016 9:19:33 AM jenkins.plugins.mattermost.StandardMattermostService publish\r\nWARNING: Mattermost post may have failed. Response: <HTML><HEAD>\r\n<TITLE>Access Denied</TITLE>\r\n</HEAD>\r\n<BODY>\r\n<FONT face=\"Helvetica\">\r\n<big><strong></strong></big><BR>\r\n</FONT>\r\n<blockquote>\r\n<TABLE border=0 cellPadding=1 width=\"80%\">\r\n<TR><TD>\r\n<FONT face=\"Helvetica\">\r\n<big>Access Denied (policy_denied)</big>\r\n<BR>\r\n<BR>\r\n</FONT>\r\n</TD></TR>\r\n<TR><TD>\r\n<FONT face=\"Helvetica\">\r\nYour system policy has denied access to the requested URL.\r\n</FONT>\r\n</TD></TR>\r\n<TR><TD>\r\n<FONT face=\"Helvetica\">\r\n\r\n</FONT>\r\n</TD></TR>\r\n<TR><TD>\r\n<FONT face=\"Helvetica\" SIZE=2>\r\n<BR>\r\nFor assistance, contact your network support team.\r\n</FONT>\r\n</TD></TR>\r\n</TABLE>\r\n</blockquote>\r\n</FONT>\r\n</BODY></HTML>\r\n\r\nMar 16, 2016 9:19:33 AM jenkins.plugins.mattermost.StandardMattermostService publish\r\nINFO: Posting succeeded"},"comment":{"url":"https://api.github.com/repos/jovandeginste/jenkins-mattermost-plugin/issues/comments/198253375","html_url":"https://github.com/jovandeginste/jenkins-mattermost-plugin/issues/6#issuecomment-198253375","issue_url":"https://api.github.com/repos/jovandeginste/jenkins-mattermost-plugin/issues/6","id":198253375,"user":{"login":"jovandeginste","id":3170771,"avatar_url":"https://avatars.githubusercontent.com/u/3170771?v=3","gravatar_id":"","url":"https://api.github.com/users/jovandeginste","html_url":"https://github.com/jovandeginste","followers_url":"https://api.github.com/users/jovandeginste/followers","following_url":"https://api.github.com/users/jovandeginste/following{/other_user}","gists_url":"https://api.github.com/users/jovandeginste/gists{/gist_id}","starred_url":"https://api.github.com/users/jovandeginste/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jovandeginste/subscriptions","organizations_url":"https://api.github.com/users/jovandeginste/orgs","repos_url":"https://api.github.com/users/jovandeginste/repos","events_url":"https://api.github.com/users/jovandeginste/events{/privacy}","received_events_url":"https://api.github.com/users/jovandeginste/received_events","type":"User","site_admin":false},"created_at":"2016-03-18T08:30:35Z","updated_at":"2016-03-18T08:30:35Z","body":"You could change the source code, of course, but if you're not using ssl for communication between Jenkins and Mattermost, you could use tcpdump:\r\n\r\n```tcpdump -nnnn -i any port 8065```\r\n\r\nand then\r\n\r\n```tcpdump -A -nnnn -i any port 8065```\r\n\r\nFirst will just show tcp headers, second will show packet contents. The combination of request and response might give you a clue about context ...\r\n\r\nThere should not be any username or password, since that is inherent in the token (8g6y9awyjp...)\r\n\r\nCan you see in the Mattermost logs? Sometimes there is something useful there ..."}}