85x14 / griddler-ses Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
It seems SNS can only receive email less than 150k?
so this gem won't work with email larger than 150k, will it?
stack.rb:106:in `assert_index': No such middleware to insert before: ActionDispatch::ParamsParser (RuntimeError)
Via 5.0 release notes:
https://github.com/rails/rails/blob/6c520b75286aa5969de427c5aa417061bd7c58bc/guides/source/5_0_release_notes.md
ActionDispatch::ParamsParser is deprecated and was removed from the middleware stack. To configure the parameter parsers use ActionDispatch::Request.parameter_parsers=. (commit, commit)
Exception:
cannot load such file -- rack/showexceptions (LoadError)
A Google search shows that it's a known issue in Sinatra (sinatra/sinatra#1055) and can be fixed by updating to 2.0.0.rc1. However, sns_endpoint isn't being maintained anymore. I'd propose either adding the source to this repository, forking sns_endpoint, or replacing it with the official amazon SDK.
Has anyone else run into a similar issue when parsing the email body from SNS?
Encoding::CompatibilityError: incompatible encoding regexp match (UTF-8 regexp with ASCII-8BIT string)
I realize it’s erroring in the griddler gem, but it seems to be how it’s passed from the SNS adapter.
I know @ccallebs has a fork and seems to be actively maintaining the new fork.
Here’s the body of the SNS Request:
redacted
Hi @kmewhort,
Publishing a topic from AWS SNS using griddler-ses v1.0.3 is resulting in the following:
JSON::ParserError (784: unexpected token at 'hello world!'):
json_pure (1.8.3) lib/json/common.rb:155:in parse' json_pure (1.8.3) lib/json/common.rb:155:in
parse'
/Users/money/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/bundler/gems/griddler-ses-cd822bc02940/lib/griddler/ses/adapter.rb:49:in email_json' /Users/money/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/bundler/gems/griddler-ses-cd822bc02940/lib/griddler/ses/adapter.rb:53:in
notification_type'
/Users/money/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/bundler/gems/griddler-ses-cd822bc02940/lib/griddler/ses/adapter.rb:126:in ensure_valid_notification_type!' /Users/money/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/bundler/gems/griddler-ses-cd822bc02940/lib/griddler/ses/adapter.rb:30:in
normalize_params'
/Users/money/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/bundler/gems/griddler-ses-cd822bc02940/lib/griddler/ses/adapter.rb:16:in normalize_params' griddler (1.3.1) app/controllers/griddler/emails_controller.rb:17:in
normalized_params'
griddler (1.3.1) app/controllers/griddler/emails_controller.rb:3:in `create'
This does not happen when AWS confirms the subscription request. My guess is, since there is nothing to parse during confirmation.
This is driving me nuts. I just did a fresh install of Griddler and Griddler-SES. I setup all the AWS items as noted I even pulled a local copy of your library and I still don't know why params aren't set. I checked the middleware, I checked the data being sent. It simply isn't working. :/
I created my own controller and used JSON.parse(request.body.read) but this opens its own can of worms. Any ideas?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.