jdev - 2025-04-20


  1. Schimon

    Good day. I have recently made changes with Presence handling with my bot. Now, the bot causes to a server error upon start. I would be glad if someone would kindly instruct me or explain the problem. Group chat xmpp:slixfeed@chat.woodpeckersnest.space?join Thank you.

  2. lovetox

    why not post your problem here, thats what this chat is for

  3. Schimon

    lovetox. Thank you. I will.

  4. Schimon

    mirux. Please post the Prosody server error that occurs upon starting Slixfeed.

  5. mirux

    Ok

  6. mirux

    > Apr 18 17:28:52 c2s2c29b80 error Traceback[c2s]: /usr/share/lua/5.4/prosody/core/usermanager.lua:125: attempt to index a nil value (field '?') > stack traceback: > /usr/share/lua/5.4/prosody/core/usermanager.lua:125: in function 'prosody.core.usermanager.user_exists' > ...ocal/lib/prosody-modules/mod_anti_spam/mod_anti_spam.lua:218: in field '?' > /usr/share/lua/5.4/prosody/util/events.lua:81: in function </usr/share/lua/5.4/prosody/util/events.lua:77> > (...tail calls...) > /usr/share/lua/5.4/prosody/core/stanza_router.lua:188: in upvalue 'core_post_stanza' > /usr/share/lua/5.4/prosody/core/stanza_router.lua:128: in upvalue 'core_process_stanza' > /usr/lib/prosody/modules/mod_c2s.lua:366: in upvalue 'func' > /usr/share/lua/5.4/prosody/util/async.lua:149: in function </usr/share/lua/5.4/prosody/util/async.lua:147>

  7. Schimon

    We suspect that Slixfeed causes to this error. https://git.xmpp-it.net/sch/Slixfeed/commit/fee0ad10515babe28866b33c710afcb442e9d024 https://git.xmpp-it.net/sch/Slixfeed/commit/97042de7ac377f4569c03cb78eebd46779bba8c3 https://git.xmpp-it.net/sch/Slixfeed/src/branch/master/slixfeed/xmpp/presence.py

  8. theTedd

    Schimon, it would be useful to see a log of what was sent by Slixfeed shortly before this error. It looks like you're sending a '?' as the username or hostname. If this is crashing Prosody then that's a bug too.

  9. Schimon

    theTedd. I do not know what Slixfeed does which causes it. I would have to run my own Prosody server in order to explore this.

  10. Schimon

    theTedd. I do not know what Slixfeed does which causes it. I would probably need to run my own Prosody server in order to explore this.

  11. theTedd

    Neither do we - that's why the log would be useful.

  12. Zash

    "crashing" is such a strong word

  13. theTedd

    Exploding is better 😁

  14. Zash

    What happens is something like ```lua hosts = {} host="example.com" print(hosts[host].something) -- throws the error "attempt to index a nil value (field '?')" ```

  15. Zash

    Lua says '?' because the field is a variable, not a constant, or something like that

  16. theTedd

    core/usermanager.lua:124 ```lua local function user_exists(username, host) if hosts[host].sessions[username] then return true; end return hosts[host].users.user_exists(username); end ```

  17. Zash

    https://hg.prosody.im/trunk/file/13.0.1/core/usermanager.lua#l125 So you're trying to check if a user exists on a host that doesn't exist

  18. Zash

    or, mod_anti_spam is? dunno

  19. badrihippo

    Schimon, doesn't slixmpp have a way to print out stanzas? Maybe you can enable that to narrow down where the problem is occurring

  20. Schimon

    > Schimon, doesn't slixmpp have a way to print out stanzas? Maybe you can enable that to narrow down where the problem is occurring badrihippo. I do not know. Probably not. I will ask the original reporter for a Slixmpp log.

  21. Schimon

    > https://hg.prosody.im/trunk/file/13.0.1/core/usermanager.lua#l125 > So you're trying to check if a user exists on a host that doesn't exist Zash. Maybe so. I have also registered events that are related to presence subscription.

  22. Schimon

    mirux. Please connect to the account of the bot and clear its roster. Please keep the contacts that you know exist. Then disconnect and restart the bot.

  23. kazza.cc removed by cal0pteryx

    Spam

  24. qy

    no thanks