-
-
Notifications
You must be signed in to change notification settings - Fork 181
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
jets seems to be incompatible with Dynomite #65
Comments
@graimon Thanks for the nice words. Interesting. Wasn't able to reproduce the issue. 😕 Here's the code based on your examples: https://github.com/tongueroo/dynamodb-demo Ran the Manually subscribe to the SNS topic and got the emails: Am unable to reproduce right now. Doesn't mean there's no issue, just am unable to reproduce on my setup. Maybe the full CloudWatch logs will reveal a more debugging info what you're seeing? Here's a post on how to view the CloudWatch logs: Jets Tutorial Debugging Logs Part 3: AWS Lambda Ruby Let me know. Leaving open for now in case there's more info. P.S. Impressed that you were able to use Dynomite, would like to improve the docs on it, too busy with work though 😁 |
Hi again, Looking at the differences with your project, the only thing I can see is that I'm using the DYNAMODB_ENDPOINT env variable, which now I realise it is not needed unless you want to access some other region. Looking at Dynomite::DbConfig, it is updating the Aws.config.endpoint, this is why maybe I'm getting this strange behaviour.
It may be worth changing the way the endpoint is passed to the Aws::DynamoDB::Client.new on Dynomite itself, what do you think? But thanks! I've removed the env variable on my project and everything started working as expected. Cheers, |
@graimon Glad that it worked when not setting
Good point! The endpoint setting should be scoped to the DynamoDB client only. Can see how setting it globally like that can cause issues. Updated dynomite and released in v1.0.8. Dynomite Changelog Updated the vendor/dynomite submodule reference in jets project master branch and this will go out in the next Jets release. Thanks again for the report. Closing this out now. |
Hello, first of all I want to congratulate you for the wonderful framework you've built. Jets is amazing!
I was playing around with it, running some tests and came with a really strange behaviour.
I was trying to publish a notification to an SNS queue, following the docs and examples and everything went smooth.
Then I decided to add some logic persisting data on a DynamoDB table, using Dynomite and everything started failing.
After digging and running several tests I came to the conclusion that the problem has to do with the following line on dynomite or something related to
Aws.config
.I'll try to describe the failing situation:
DYNAMODB_ENDPOINT=https://dynamodb.eu-west-1.amazonaws.com
in my .env filesUsing this scenario I am able to get the channels, but when I try to lookup for the arn I get the following exception:
The catchy thing is that if I lookup the arn first and then scan the dynamo model, the first time the function is invoked, it works as expected, the consequent calls fail.
I hope the description is clear enough.
RaY
The text was updated successfully, but these errors were encountered: