#1640 mod_c2s.lua:218: attempt to index a nil value (local 'conn')
Reporter
Zash
Owner
Nobody
Created
Updated
Stars
★★ (2)
Tags
Priority-Medium
Type-Defect
Status-Accepted
Zash
on
???
Mar 02 22:36:09 c2s55cf43e00a30 info Client connected
Mar 02 22:36:09 mod_c2s debug Received invalid XML (not well-formed (invalid token)) 218 bytes: "\022\003\001..."
Mar 02 22:36:09 c2s55cf43e00a30 debug Sending[c2s_unauthed]: <?xml version='1.0'?>
Mar 02 22:36:09 c2s55cf43e00a30 debug Sending[c2s_unauthed]: <stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' xml:lang='en' id=''>
Mar 02 22:36:09 c2s55cf43e00a30 debug Disconnecting client, <stream:error> is: <stream:error><not-well-formed xmlns='urn:ietf:params:xml:ns:xmpp-streams'/></stream:error>
Mar 02 22:36:09 c2s55cf43e00a30 debug Sending[c2s_unauthed]: <stream:error>
Mar 02 22:36:09 connnfktx-NHtt_ePgNo debug Sent [0.0] out of 91 buffered bytes
Mar 02 22:36:09 c2s55cf43e00a30 info Client disconnected: closed
Mar 02 22:36:09 c2s55cf43e00a30 debug Destroying session for (unknown) ((unknown)@(unknown)): closed
Mar 02 22:36:09 connnfktx-NHtt_ePgNo debug Unregistered from poller
Mar 02 22:36:09 c2s55cf43e00a30 debug Discarding data sent to resting session: </stream:stream>
Mar 02 22:36:09 c2s55cf43e00a30 debug c2s stream for <unknown> closed: not-well-formed
Mar 02 22:36:09 c2s55cf43e00a30 debug Destroying session for (unknown) ((unknown)@(unknown)): not-well-formed
Mar 02 22:36:09 connnfktx-NHtt_ePgNo error Error calling onincoming: /usr/lib/prosody/modules/mod_c2s.lua:218: attempt to index a nil value (local 'conn')
stack traceback:
/usr/lib/prosody/modules/mod_c2s.lua:218: in method 'close'
/usr/lib/prosody/modules/mod_c2s.lua:315: in field 'data'
/usr/lib/prosody/modules/mod_c2s.lua:338: in function </usr/lib/prosody/modules/mod_c2s.lua:335>
[C]: in function 'util.xpcall.xpcall'
/usr/share/lua/5.3/prosody/net/server_epoll.lua:218: in function </usr/share/lua/5.3/prosody/net/server_epoll.lua:204>
(...tail calls...)
/usr/share/lua/5.3/prosody/net/server_epoll.lua:421: in method 'onreadable'
/usr/share/lua/5.3/prosody/net/server_epoll.lua:911: in function 'net.server.loop'
[C]: in function 'util.xpcall.xpcall'
/usr/bin/prosody:62: in local 'loop'
/usr/bin/prosody:72: in main chunk
[C]: in ?
https://hg.prosody.im/trunk/rev/0a9d6eec6a8f
??? Mar 02 22:36:09 c2s55cf43e00a30 info Client connected Mar 02 22:36:09 mod_c2s debug Received invalid XML (not well-formed (invalid token)) 218 bytes: "\022\003\001..." Mar 02 22:36:09 c2s55cf43e00a30 debug Sending[c2s_unauthed]: <?xml version='1.0'?> Mar 02 22:36:09 c2s55cf43e00a30 debug Sending[c2s_unauthed]: <stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' xml:lang='en' id=''> Mar 02 22:36:09 c2s55cf43e00a30 debug Disconnecting client, <stream:error> is: <stream:error><not-well-formed xmlns='urn:ietf:params:xml:ns:xmpp-streams'/></stream:error> Mar 02 22:36:09 c2s55cf43e00a30 debug Sending[c2s_unauthed]: <stream:error> Mar 02 22:36:09 connnfktx-NHtt_ePgNo debug Sent [0.0] out of 91 buffered bytes Mar 02 22:36:09 c2s55cf43e00a30 info Client disconnected: closed Mar 02 22:36:09 c2s55cf43e00a30 debug Destroying session for (unknown) ((unknown)@(unknown)): closed Mar 02 22:36:09 connnfktx-NHtt_ePgNo debug Unregistered from poller Mar 02 22:36:09 c2s55cf43e00a30 debug Discarding data sent to resting session: </stream:stream> Mar 02 22:36:09 c2s55cf43e00a30 debug c2s stream for <unknown> closed: not-well-formed Mar 02 22:36:09 c2s55cf43e00a30 debug Destroying session for (unknown) ((unknown)@(unknown)): not-well-formed Mar 02 22:36:09 connnfktx-NHtt_ePgNo error Error calling onincoming: /usr/lib/prosody/modules/mod_c2s.lua:218: attempt to index a nil value (local 'conn') stack traceback: /usr/lib/prosody/modules/mod_c2s.lua:218: in method 'close' /usr/lib/prosody/modules/mod_c2s.lua:315: in field 'data' /usr/lib/prosody/modules/mod_c2s.lua:338: in function </usr/lib/prosody/modules/mod_c2s.lua:335> [C]: in function 'util.xpcall.xpcall' /usr/share/lua/5.3/prosody/net/server_epoll.lua:218: in function </usr/share/lua/5.3/prosody/net/server_epoll.lua:204> (...tail calls...) /usr/share/lua/5.3/prosody/net/server_epoll.lua:421: in method 'onreadable' /usr/share/lua/5.3/prosody/net/server_epoll.lua:911: in function 'net.server.loop' [C]: in function 'util.xpcall.xpcall' /usr/bin/prosody:62: in local 'loop' /usr/bin/prosody:72: in main chunk [C]: in ? https://hg.prosody.im/trunk/rev/0a9d6eec6a8f