#874 mod_cloud_notify.lua:181: attempt to call method 'unhook' (a nil value)

Reporter Thomas L.
Owner Nobody
Created
Updated
Stars ★ (1)  
Tags
  • Status-New
  • Priority-Medium
  • Type-Defect
  1. Thomas L. on

    What steps will reproduce the problem? 1. Use Prosody What is the expected output? What do you see instead? Expected: No error message What i get: Error Message: Mar 28 07:58:08 mod_c2s error Traceback[c2s]: ...rosody-modules/mod_cloud_notify/mod_cloud_notify.lua:181: attempt to call method 'unhook' (a nil value) stack traceback: ...rosody-modules/mod_cloud_notify/mod_cloud_notify.lua:181: in function '?' /usr/lib/prosody/util/events.lua:67: in function </usr/lib/prosody/util/events.lua:63> (tail call): ? (tail call): ? /usr/lib/prosody/util/events.lua:67: in function 'fire_event' /usr/lib/prosody/core/stanza_router.lua:188: in function 'core_post_stanza' /usr/lib/prosody/core/stanza_router.lua:135: in function </usr/lib/prosody/core/stanza_router.lua:56> (tail call): ? [C]: in function 'xpcall' /usr/lib/prosody/modules/mod_c2s.lua:123: in function 'cb_handlestanza' ... /usr/lib/prosody/util/xmppstream.lua:255: in function 'feed' /usr/lib/prosody/modules/mod_c2s.lua:233: in function 'data' /usr/lib/prosody/modules/mod_c2s.lua:255: in function 'onincoming' /usr/lib/prosody/net/server_event.lua:636: in function </usr/lib/prosody/net/server_event.lua:582> [C]: in function 'loop' /usr/lib/prosody/net/server_event.lua:797: in function </usr/lib/prosody/net/server_event.lua:796> [C]: in function 'xpcall' /usr/bin/prosody:376: in function 'loop' /usr/bin/prosody:407: in main chunk [C]: ? What version of the product are you using? On what operating system? Prosody 0.9.12 on Debian Jessie - latest version of mod_cloud_notify Please provide any additional information below.

  2. Thilo Molitor (tmolitor) on

    My fault: I didn't know module:unhook() is only available in prosody 0.10+. I just fixed this in https://hg.prosody.im/prosody-modules/rev/e6d243ed88ca, please update your copy of the module.

New comment