SleekXMPP proxy issue
NickName:Aakash Anuj Ask DateTime:2014-11-30T00:52:02

SleekXMPP proxy issue

I am using SleekXMPP to integrate a chat bot with Facebook. When I am not behind a proxy, I get the expected behavior. But when I am behind a proxy, the connection is not established. I took a look at the documentation and found that I should include this part:

    sleekxmpp.use_proxy = True
    sleekxmpp.proxy_config = {
        'host': '10.3.100.207',
        'port': 8080,
    }

This gives me this final code:

addr = ('chat.facebook.com', 5222)
ipaddr = ('209.85.175.125',5222)

chatbot = sleekxmpp.ClientXMPP(jid,password)
sleekxmpp.use_proxy = True
sleekxmpp.proxy_config = {
    'host': '10.3.100.207',
    'port': 8080,
}

But it does not connect to the server. Anyone could help?

Copyright Notice:Content Author:「Aakash Anuj」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/27204614/sleekxmpp-proxy-issue

More about “SleekXMPP proxy issue” related questions

SleekXMPP proxy issue

I am using SleekXMPP to integrate a chat bot with Facebook. When I am not behind a proxy, I get the expected behavior. But when I am behind a proxy, the connection is not established. I took a loo...

Show Detail

Sending Messages with sleekxmpp hangs in process()

So I've got this little Python script that get's triggerd from an insert into a PostgreSQL table and deliveres XMPP Messages. Worked like a charm. Now with an upgrade to Python 3.8 (from 3.5) and

Show Detail

SleekXMPP: "Certificate has expired."

I'm currently trying to use the sleekxmpp module in Python3.5 to connect to jabber.at, an XMPP service. Jabber.at's SSL certificates are issued by Let's Encrypt. The problem I'm having is, when I ...

Show Detail

Twisted - SleekXMPP compatibility

I am making a XMPP middleware in python which listens on a an address(host,port) and when it receives some connection on that port, it sends a XMPP message to a jid(XMPP user) on a server. A quick

Show Detail

Connecting to Facebook Chat using SleekXMPP

I'm using this sample code to connect to Facebook Chat over XMPP: #!/usr/bin/python import sleekxmpp import logging logging.basicConfig(level=logging.DEBUG) def session_start(event): chatbot.

Show Detail

SleekXMPP: Get ClientXMPP JID Resource?

import sleekxmpp class SendMsgBot(sleekxmpp.ClientXMPP): def __init__(self, jid, password, recipient, wsh): print "jid is " + jid sleekxmpp.ClientXMPP.__init__(self, jid, passw...

Show Detail

python sleekxmpp ping error

When I run the ping example from github, I get this AttributeError: INFO Negotiating TLS INFO Using SSL version: 1 INFO Node set to: beast@home-server/50182ab4 INFO CERT: Time until

Show Detail

How does sleekxmpp components work?

This may sound dumb but I followed this tutorial: https://github.com/fritzy/SleekXMPP/wiki/Creating-a-SleekXMPP-Plugin and here's the component at the end that uses the XEP-0077 plugin that was c...

Show Detail

SleekXMPP Muc Room List and Discovering

I'm new to XMPP :) I've been working with Ejabberd and sleekXMPP. My question is How can online rooms are listed with sleekXMPP? Thank you

Show Detail

Is there any example for sending file through sleekxmpp?

I have read several documents and posts in stackoverflow, I did't find any example for sending file or image with sleekxmpp.I have read the code in file_transfer.py provided in sleekxmpp package, B...

Show Detail