Bug 236072 - net-im/prosody-modules: mod_slack_webhooks is broken
Summary: net-im/prosody-modules: mod_slack_webhooks is broken
Status: In Progress
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Tobias C. Berner
Depends on:
Reported: 2019-02-27 03:32 UTC by TAO ZHOU
Modified: 2019-08-13 23:24 UTC (History)
1 user (show)

See Also:
lx: maintainer-feedback-


Note You need to log in before you can comment on or make changes to this bug.
Description TAO ZHOU 2019-02-27 03:32:40 UTC
The slack_webhooks module is not working.
I am getting errors as below

Feb 27 14:10:18 http.server	error	Traceback[httpserver]: ...usr/local/lib/prosody-modules/mod_slack_webhooks.lua:17: attempt to index local 'mod_muc' (a nil value)
stack traceback:
	...usr/local/lib/prosody-modules/mod_slack_webhooks.lua:17: in function 'get_room_by_jid'
	...usr/local/lib/prosody-modules/mod_slack_webhooks.lua:77: in function <...usr/local/lib/prosody-modules/mod_slack_webhooks.lua:71>
	(tail call): ?
	/usr/local/lib/prosody/util/events.lua:79: in function </usr/local/lib/prosody/util/events.lua:75>
	(tail call): ?
	(tail call): ?
	(tail call): ?
	/usr/local/lib/prosody/net/http/server.lua:248: in function </usr/local/lib/prosody/net/http/server.lua:176>
	[C]: in function 'xpcall'
	/usr/local/lib/prosody/net/http/server.lua:108: in function 'process_next'
	/usr/local/lib/prosody/net/http/server.lua:124: in function 'success_cb'
	/usr/local/lib/prosody/net/http/parser.lua:177: in function 'feed'
	/usr/local/lib/prosody/net/http/server.lua:155: in function </usr/local/lib/prosody/net/http/server.lua:154>
	(tail call): ?
	/usr/local/lib/prosody/net/server_select.lua:915: in function </usr/local/lib/prosody/net/server_select.lua:899>
	[C]: in function 'xpcall'
	/usr/local/lib/prosody/../../bin/prosody:80: in function 'loop'
	/usr/local/lib/prosody/../../bin/prosody:90: in main chunk
	[C]: ?

I replaced usr/local/lib/prosody-modules/mod_slack_webhooks.lua with this one https://hg.prosody.im/prosody-modules/file/tip/mod_slack_webhooks/mod_slack_webhooks.lua
, and it's working.
Comment 1 David Thiel freebsd_committer 2019-03-01 21:02:25 UTC
Given that this module isn't included in the prosody port or the current prosody-modules port, I don't understand what action is being requested here.
Comment 2 TAO ZHOU 2019-03-26 00:21:11 UTC
The module was installed by a different port net-im/prosody-modules