I have Mailgun set up to forward emails to my /rails/action_mailbox/mailgun/inbound_emails/mime
endpoint.
When my endpoint receives the request, it gives the following error:
ArgumentError (Missing required Mailgun API key. Set action_mailbox.mailgun_api_key in your application's encrypted credentials or provide the MAILGUN_INGRESS_API_KEY environment variable.)
However, MAILGUN_INGRESS_API_KEY
is in fact set. When I run ENV["MAILGUN_INGRESS_API_KEY"]
in the console, I see my API key. I even pasted in the API key determination code from GitHub to see if there was a problem there, but the return value I got was my actual API key.
Any ideas on what the problem could be?