pika.exceptions.AMQPConnectionError #6680
Unanswered
Opperessor
asked this question in
Other
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
`
import pika
parameters = pika.URLParameters('amqp://guest_user:_user@20...*:5672/%2f')
connection = pika.BlockingConnection(parameters)
channel = connection.channel()
channel.queue_declare(queue='task_queue',durable=True,arguments={"x-queue-type": "quorum"})
message = "Hello World"
channel.basic_publish(exchange='', routing_key='task_queue', body=message)
print("Sent %r" % message)
connection.close()
`
error
raise self._reap_last_connection_workflow_error(error) pika.exceptions.AMQPConnectionError
unable to connect using both ConnectionParameters and URLParameters. tried using heartbeat parameters to still the same error
Beta Was this translation helpful? Give feedback.
All reactions