Skip to content
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

secure=False required? #48

Closed
dnephin opened this issue May 6, 2015 · 3 comments
Closed

secure=False required? #48

dnephin opened this issue May 6, 2015 · 3 comments

Comments

@dnephin
Copy link

dnephin commented May 6, 2015

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
Copy link
Contributor

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
Copy link
Member

adamw commented May 14, 2015

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
Copy link
Author

dnephin commented May 18, 2015

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

Thanks!

@dnephin dnephin closed this as completed May 18, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants