Mattermost, Inc.

Mattermost webhook plugin post error - dail tcp i/o error


I am unable to make any post request from a plugin. dail tcp IP i/o error

Steps to reproduce

I have installed Mattermost 5.13.2 on a DMZ (192.168.x.x:8067) behind a Firewall using NAT. I am able to use Mattermost as expected from internet using my public IP/hostname as well as internal.
I installed a plugin(RemindBot) but none of the buttons work after a reminder is sent.

I changed the config file to reflect the following:

"EnableInsecureOutgoingConnections": true,
"AllowedUntrustedInternalConnections": “192.168.x.x”,

I still am unable to make it work.

Observed behavior

Following is the error that is generated:

{“level”:“error”,“ts”:1564767183.8125181,“caller”:“mlog/log.go:172”,“msg”:“Action integration error”,“path”:"/api/v4/posts/nrct1bbkdpyqtm41jdfyanhmaa/actions/feqngh9b1jyetpqianhwwcmkmo",“request_id”:“4ypkej9zdpgmpmpcrq96jfxkuw”,“ip_addr”:“10.190.x.x”,“user_id”:“c859kpm4e38odqttj7y9cz367r”,“method”:“POST”,“err_where”:“DoActionRequest”,“http_code”:400,“err_details”:“err=Post https://{hostname}:8067/plugins/com.github.scottleedavis.mattermost-plugin-remind/delete: dial tcp PUBLIC_IP:8067: i/o timeout”}

Unfortunately, the remind plugin currently relies on the configured SiteURL to determine where to route the action request. New in 5.14 is support for relative action URLs which will resolve entirely within the server and avoid issues like this, but we’ll also need help from the community to update this particular plugin.

cc @scottleedavis

@ tejas.designer07 & @jesse mattermost-plugin-remind will update to use relative paths for actions in mattermost release 5.14 following the nps plugin as an example.

1 Like