-
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.
-
lovetox
why not post your problem here, thats what this chat is for
-
Schimon
lovetox. Thank you. I will.
-
Schimon
mirux. Please post the Prosody server error that occurs upon starting Slixfeed.
-
mirux
Ok
-
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>
-
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
-
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.
-
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.✎ -
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. ✏
-
theTedd
Neither do we - that's why the log would be useful.
-
Zash
"crashing" is such a strong word
-
theTedd
Exploding is better 😁
-
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 '?')" ```
-
Zash
Lua says '?' because the field is a variable, not a constant, or something like that
-
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 ```
-
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
-
Zash
or, mod_anti_spam is? dunno
-
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
-
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. ↺
-
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. ↺
-
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.
-
kazza.cc
removed by cal0pteryx
Spam
-
qy
no thanks