softwaremill / elasticmq

In-memory message queue with an Amazon SQS-compatible interface. Runs stand-alone or embedded.
https://softwaremill.com/open-source/
Apache License 2.0
2.51k stars 194 forks source link

secure=False required? #48

Closed dnephin closed 9 years ago

dnephin commented 9 years ago

Hello,

I'm just getting started with elasticmq. I'm using boto (the official aws client) as the client, and I was running into a bunch of errors I didn't understand:

[WARN] [05/06/2015 20:36:37.435] [elasticmq-akka.actor.default-dispatcher-51] [akka://elasticmq/user/IO-HTTP/listener-0/23] Illegal request, responding with status '501 Not Implemented': Unsupported HTTP method

I was able to get it working by setting is_secure=False in boto (it defaults to is_secure=True).

I didn't see anything in the README about secure=False, or SSL. Is this expected? Is there some way to get it to work with secure? If not, could you add a note to the docs somewhere about that?

Thanks!

cancan101 commented 9 years ago

I use this with boto and it works fine:


region = boto.sqs.regioninfo.RegionInfo(name='elasticmq',
                                        endpoint=sqs_endpoint)
conn = boto.connect_sqs(aws_access_key_id='x',
                        aws_secret_access_key='x',
                        is_secure=False,
                        port=sqs_port,
                        region=region)

where sqs_endpoint and sqs_port are the host and port.

adamw commented 9 years ago

ElasticMQ exposes the API via HTTP, so it doesn't handle https in any way (would be quite complex given that you would have to provide certificates etc).

If you could make a PR with README changes describing how to use EMQ from Boto (I never used that :) ), it would be great!

dnephin commented 9 years ago

Cool, #49 looks good. It doesn't explicitly call out is_secure=False in the text, but the example should do.

Thanks!