Git Product home page Git Product logo

griddler-ses's People

Contributors

kmewhort avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

griddler-ses's Issues

Broken on Rails 5 -- sns_endpoint gem the culprit

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.

Encoding::CompatibilityError

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

JSON::ParserError

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:inparse'
/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:innotification_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:innormalize_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:innormalized_params'
griddler (1.3.1) app/controllers/griddler/emails_controller.rb:3:in `create'

omitted rest for brevity

This does not happen when AWS confirms the subscription request. My guess is, since there is nothing to parse during confirmation.

Params not set

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.