xmppo / xmpp-webhook

Multipurpose XMPP-Webhook (Built for DevOps Alerts)
https://github.com/xmppo/xmpp-webhook
MIT License
22 stars 8 forks source link

service crash - panic: malformed-request #21

Open harvald opened 3 years ago

harvald commented 3 years ago

service xmpp-webhook crash on start with log message: `panic: malformed-request

goroutine 1 [running]: main.panicOnErr(...) /root/xmpp-webhook/xmpp-webhook-master/main.go:24 main.main() /root/xmpp-webhook/xmpp-webhook-master/main.go:100 +0x80e`

tmsmr commented 3 years ago

Hey @harvald, seems like the XMPP-client is not able to connect to your server. Can you provide some details about the environment?

harvald commented 3 years ago

OS: Ubuntu 20.04 XMPP: Prosody 0.11.4 on the same host From Prosody logs: `Jun 17 14:09:11 c2s560d2d807f40 debug Client sent opening to harvald.pl.eu.org Jun 17 14:09:11 c2s560d2d807f40 debug Sending[c2s_unauthed]: <?xml version='1.0'?> Jun 17 14:09:11 c2s560d2d807f40 debug Sending[c2s_unauthed]: Jun 17 14:09:11 c2s560d2d807f40 debug Sent reply to client Jun 17 14:09:11 c2s560d2d807f40 info Stream encrypted (TLSv1.3 with TLS_AES_256_GCM_SHA384) Jun 17 14:09:11 c2s560d2d807f40 debug Not offering disabled mechanism DIGEST-MD5 Jun 17 14:09:11 c2s560d2d807f40 debug Offering mechanism SCRAM-SHA-1 Jun 17 14:09:11 c2s560d2d807f40 debug Offering mechanism SCRAM-SHA-1-PLUS Jun 17 14:09:11 c2s560d2d807f40 debug Offering mechanism PLAIN Jun 17 14:09:11 c2s560d2d807f40 debug Sending[c2s_unauthed]: Jun 17 14:09:11 c2s560d2d807f40 debug Received[c2s_unauthed]: Jun 17 14:09:11 harvald.pl.eu.org:auth_internal_plain debug get_password for username 'harvald' Jun 17 14:09:11 harvald.pl.eu.org:saslauth debug sasl reply: cj1FQ0NrRUFVRE9ZMksyMVJSZlA5RlRnYTc2NDZj M2QtMGUxYS00ODIxLTg1ZmQtODdhZGYzZTg0YzgzLHM9T1dRellqVXhPRFl0WXpGbFpTMDBNamRtTFRoa1pERXRPR00zTXpRM056SmxZalV5LGk9NDA5Ng== Jun 17 14:09:11 c2s560d2d807f40 debug Sending[c2s_unauthed]: Jun 17 14:09:11 c2s560d2d807f40 debug Received[c2s_unauthed]: Jun 17 14:09:11 harvald.pl.eu.org:saslauth debug sasl reply: Invalid channel binding value. Jun 17 14:09:11 c2s560d2d807f40 debug Sending[c2s_unauthed]: Jun 17 14:09:11 socket debug server.lua: client 193.164.135.101:44744 read error: closed Jun 17 14:09:11 c2s560d2d807f40 info Client disconnected: closed Jun 17 14:09:11 c2s560d2d807f40 debug Destroying session for (unknown) ((unknown)@harvald.pl.eu.org): closed Jun 17 14:09:11 socket debug server.lua: closed client handler and removed socket from list

`

tmsmr commented 3 years ago

Can you provide the (anonymized) webhook configuration?

harvald commented 3 years ago

XMPP_ID='server@harvald.pl.eu.org' XMPP_PASS='xxxxxxxx' XMPP_RECIPIENTS='harvald@harvald.pl.eu.org'

also tried with XMPP_SKIP_VERIFY XMPP_OVER_TLS