Bug 236072 - net-im/prosody-modules: mod_slack_webhooks is broken
Summary: net-im/prosody-modules: mod_slack_webhooks is broken
Status: Closed FIXED
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
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-02-27 03:32 UTC by TAO ZHOU
Modified: 2019-10-17 13:25 UTC (History)
2 users (show)

See Also:
lx: maintainer-feedback-


Attachments

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 freebsd_triage 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
Comment 3 commit-hook freebsd_committer freebsd_triage 2019-10-17 13:13:03 UTC
A commit references this bug:

Author: dinoex
Date: Thu Oct 17 13:12:55 UTC 2019
New revision: 514659
URL: https://svnweb.freebsd.org/changeset/ports/514659

Log:
  - update to 20191015

  - fix mod_slack_webhooks
  PR:		236072

Changes:
  head/net-im/prosody-modules/Makefile
  head/net-im/prosody-modules/distinfo
  head/net-im/prosody-modules/pkg-plist