Currently facing this issue. Could anyone help me to troubleshoot it?
/Users/maria/.virtualenvs/dockerseleniumtest/bin/python /Users/maria/Desktop/dockerselenium/main/working.py
Traceback (most recent call last):
File "/Users/maria/Desktop/dockerselenium/main/working.py", line 8, in <module>
sendmes.new_task()
File "/Users/maria/Desktop/dockerselenium/main/sendmes/testing.py", line 12, in new_task
connection = pika.BlockingConnection(pika.ConnectionParameters('localhost'))
File "/Users/maria/.virtualenvs/dockerseleniumtest/lib/python3.8/site-packages/pika/adapters/blocking_connection.py", line 359, in __init__
self._impl = self._create_connection(parameters, _impl_class)
File "/Users/maria/.virtualenvs/dockerseleniumtest/lib/python3.8/site-packages/pika/adapters/blocking_connection.py", line 450, in _create_connection
raise self._reap_last_connection_workflow_error(error)
pika.exceptions.AMQPConnectionError
##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting. Do not change this entry.
##
127.0.0.1 localhost
255.255.255.255 broadcasthost
::1 localhost
# Added by Docker Desktop
# To allow the same kube context to work on the host and the container:
127.0.0.1 kubernetes.docker.internal
# End of section