-
Notifications
You must be signed in to change notification settings - Fork 32
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
[error] Unable to fetch events from AWS. Reason: {:option, :server_only, :honor_cipher_order} #31
Comments
Hi @nocivus! Does it work if you pass the full queue URL instead of the name? If so, this is a known issue regarding a recent change in |
Hi @msaraiva, still happens if i set the host with the account id. The message then becomes: EDIT: Did not attempt to put the full url in the queue_name, will try that. |
Seems to be unrelated, tbh. In local development it works properly, only fails when running inside an alpine container on AWS. If i put the full url in the queue name it fails locally (as it should, since it's just appending that name to the host). |
This is currently an issue with hackney. It could have to do with lack of verison pinning. OTP updated to 22.1 and changed a return type. For now replace your hackney dep with |
thanks @chris-brace, will give that a shot... |
No problem. However, if you also upgrade from broadway_sqs 0.2.0 to 0.3.0 you'll need to set the ENTIRE queue url as the |
Ah, then i'll probably upgrade that. Btw, with 0.2.0 i still get the same error even after updating hackney to master. Do you think it could have anything to do with the fact that i use this docker image to build:
and this one to actually run the released version?
Btw, reason i use 3.9 is because the app does not even start (seg fault) with alpine latest. |
This is 100% what caused it. c.f.: c0b/docker-elixir#122 (comment) I fixed this by changing the hackney dep to point at master (really annoying, might consider switching to mojito). Just don't forget to add
to your build stage because mix requires git to pull from the repo. |
Oh boy.. yeah so i would recommend resolving the dep overrides and stuff locally. Are you using an umbrella project? edit: Btw they've created a serious mess here, it's not you :) Just remember this next time people start talking about how x package management (npm, etc) system is a disaster. They're all like this. |
Yeah, trying to sort it out, let's see how it goes. I might end up waiting for hackney to have a version out. Thanks for the help! |
They need to make a point version. Dunno how long that's gonna take. If you're using an umbrella project you can just put the dependency with |
Ended up solving it by explicitly setting the cowboy version i needed in my mix file: Thanks for the help, guys! |
Work around works :) |
Hi all, getting this error when running a broadway app inside a docker container on AWS fargate. All the AWS credentials are being correctly set and passed to the producer:
Where get_aws_credentials() is:
All those env vars are present and correct inside the container.
I do notice that the queue url appears to not be constructed correctly (i think it's missing the AWS account id):
It's
https://sqs.eu-west-1.amazonaws.com/my_queue
, when it should behttps://sqs.eu-west-1.amazonaws.com/12345678/my_queue
(where 12345678 is the account id).For completion this account has roles to be able to access test and production environments, so that could be partially the cause. Is there a setting to explicitly pass the account id to the producer?
Cheers!
The text was updated successfully, but these errors were encountered: