qpid-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jiri Daněk (Jira) <j...@apache.org>
Subject [jira] [Commented] (PROTON-2218) Connector.user and Connector.Password are None
Date Tue, 12 May 2020 21:41:00 GMT

    [ https://issues.apache.org/jira/browse/PROTON-2218?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17105765#comment-17105765

Jiri Daněk commented on PROTON-2218:

bq. I have 2 servers in AWS MQ. I can netcat to one of them from the EC2 instance but when
I try to connect using proton I get `Condition('proton.pythonio', 'Connection refused to all
addresses')`. Anything that I should be looking into...Mind you I can connect to the broker
from telnet...

I'd try to check where it is actually connecting. I have a feeling that it will default to
amqp://localhost:5672 if you do not pass it url, or you pass url incorrectly. Not sure what
would be an easy way to check. Run the program under {{strace}}, or whatever Windows uses
instead of it, if you are on Windows? Step through it in debugger?

Anyways, we got pretty far from the original Jira ticket. This would be best to take to proton
e-mail list.

> Connector.user and Connector.Password are None
> ----------------------------------------------
>                 Key: PROTON-2218
>                 URL: https://issues.apache.org/jira/browse/PROTON-2218
>             Project: Qpid Proton
>          Issue Type: Bug
>          Components: python-binding
>    Affects Versions: proton-c-0.30.0
>            Reporter: Angelo Mendonca
>            Assignee: Jiri Daněk
>            Priority: Major
>         Attachments: image-2020-05-12-14-18-33-313.png, jd_answer_1.png
> {noformat}
>         connector.user = kwargs.get('user', self.user)
>         print("User", kwargs.get('user', self.user))
>         print(connector.user)
>         connector.password = kwargs.get('password', self.password)
>         print("password", kwargs.get('password', self.password))
>         print(connector.password){noformat}
> [https://github.com/apache/qpid-proton/blob/4265cc7ab8391630b47da2de4c1ead2f28763980/python/proton/_reactor.py#L1264]
> [https://github.com/apache/qpid-proton/blob/4265cc7ab8391630b47da2de4c1ead2f28763980/python/proton/_reactor.py#L1265] 
> Dont see to exist in kwargs although the print statement just above the kwargs.get shows
that user and password exist...
> The output is below..
> {code:java}
> KWARGS {'kwargs': {'sasl_enabled': True, 'allow_insecure_mechs': True, 'password': 'DFfoSQM2ZYlLqCLm',
'user': 'DsWPjfKALYgKmtwsVGHBceceygn'}}
> User None
> None
> password None
> None
> {code}
> The Code setups a container connection..
> !image-2020-05-12-14-18-33-313.png!
> No idea why the user and password are not being set although kwagrs contains both the
keys....I am trying to get failover to work with AWS Amazon MQ. Does BlockingConnection let
you work with multiple URLS? Or do I need to use "container.connect"?

This message was sent by Atlassian Jira

To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org

View raw message