-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Connection parameters not working #5
Comments
I doubt these settings will work in this library. Try passing it pika.credentials.Credentials object. That is how it expects in connection.py |
I am not sure how can I pass it through settings.py file. |
I have connected to my RabbitMQ using pika.credentials.Credentials object. |
Can you create the queue manually and give it a try? |
I have created a queue 'multidomain' manually in Rabbit MQ and tried, getting the same error. Do you mean to create the queue from scrapy spider? |
The queue is "multidomain:requests". |
I tried with queue name as "multidomain:requests" and getting below error in the path "\scrapy_rabbitmq\queue.py" It seems that scheduler is not working as expected. Is there any fix for this? |
Try my fork. I've fixed these issues. |
I have worked with your fork (rdcprojects/scrapy-rabbitmq) and I run my scrapy spider. For testing my script, I have just crawled a field from a URL and print that. I am getting the following error Is there anything I have to do with my scrapy spider? |
Can you provide full traceback? |
2015-10-21 15:21:50+0530 [multidomain] INFO: Spider opened 2015-10-21 15:21:50+0530 [-] Unhandled Error
|
I think we'll have to dig deeper into the library to make it work. You can get in touch with the folks at IRC channel if you want to continue working on the library. Hope this helps!! |
Thanks for the information. Because I just want to confirm that there should not be any issues in RabbitMQ queue. |
You can check the scrapy documentation about how URLs are stored in requests queue. There's some encoding / serialization being used. I'm not completely sure about it. |
I have given the following in my scrapy settings.py file
RABBITMQ_CONNECTION_PARAMETERS = {'host': 'amqp://username:password@rabbitmqserver', 'port':5672}
But I am getting the following error:
raise exceptions.AMQPConnectionError(error)
pika.exceptions.AMQPConnectionError: [Errno 11003] getaddrinfo failed
How can I use rabbit MQ server with my credentials?
The text was updated successfully, but these errors were encountered: