Code Monkey home page Code Monkey logo

Comments (9)

sveredyuk avatar sveredyuk commented on July 19, 2024 1

@bobf Sure, thanks for the useful advice

from action_mailbox_amazon_ingress.

bobf avatar bobf commented on July 19, 2024

Hi, @sveredyuk .

You need to add this to your application configuration (e.g. development config):

# config/environments/development.rb
config.hosts << 'abcabc123123.ngrok.io'

(Replace "abcabc123123" with your ngrok host).

This should fix your issue. Annoyingly, Rails does not give you any error output at all when this issue occurs so it is difficult to debug.

If you would like to submit a PR for the README that would definitely be appreciated, and blog posts are of course always welcome. : )

Let me know if the above doesn't solve your issue.

from action_mailbox_amazon_ingress.

sveredyuk avatar sveredyuk commented on July 19, 2024

Thanks, @bobf. At the end of this journey, I want to do step by step tutorial with screenshots.

from action_mailbox_amazon_ingress.

bobf avatar bobf commented on July 19, 2024

@sveredyuk That would be great ! If you have any more issues just let me know; I'm closing this ticket for now.

from action_mailbox_amazon_ingress.

sveredyuk avatar sveredyuk commented on July 19, 2024

Знімок екрана 2021-04-20 о 13 43 52

Do I need to look into a special place for SNS confirmation URL?

On request confirmation In rails logs I got only:

Started POST "/rails/action_mailbox/amazon/inbound_emails" for 54.240.230.184 at 2021-04-20 13:42:12 +0300
Processing by ActionMailbox::Ingresses::Amazon::InboundEmailsController#create as HTML
Filter chain halted as :confirm_subscription rendered or redirected
Completed 200 OK in 2064ms (ActiveRecord: 0.0ms | Allocations: 1898)

from action_mailbox_amazon_ingress.

bobf avatar bobf commented on July 19, 2024

@sveredyuk I don't quite understand the question but notice you have this in your logs:

Filter chain halted as :confirm_subscription rendered or redirected

This means that the ARN for the subscription is not recognised - you will need to add it to your application config, e.g.:

# config/environments/production.rb
config.action_mailbox.amazon.subscribed_topics = %w(
  arn:aws:sns:eu-west-1:123456789001:example-topic-1
  arn:aws:sns:us-east-1:123456789002:example-topic-2
)

Does that answer your question ?

from action_mailbox_amazon_ingress.

sveredyuk avatar sveredyuk commented on July 19, 2024

Thanks @bobf for suggestion but I have topics:

Rails.application.config.action_mailbox.amazon.subscribed_topics # =>
["arn:aws:sns:us-west-2:123456789000:sync-requests"]

from action_mailbox_amazon_ingress.

bobf avatar bobf commented on July 19, 2024

@sveredyuk Aha, in that case I think everything is working - this just means that the subscription request was confirmed, I think ! So you should be able to start receiving emails.

What event triggered this post request ? Did you click "Request confirmation" ? If you clicked that, and then saw this in your logs, it means that the SNS topic has now been confirmed with AWS and so AWS will now start sending notifications to your endpoint.

from action_mailbox_amazon_ingress.

sveredyuk avatar sveredyuk commented on July 19, 2024

@bobf Yeah. AWS cache just not shows confirmation status immediately. Thanks

from action_mailbox_amazon_ingress.

Related Issues (6)

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.