Sending emails via jobs

Hello, I’ve been trying to send emails via jobs (and from console for testing) and I’ve been getting

"errorMessage": "undefined method `host' for nil:NilClass",
"errorType": "Function<ActionView::Template::Error>",
"stackTrace": [
"/opt/ruby/gems/2.5.0/gems/jets-2.3.18/lib/jets/overrides/rails/common_methods.rb:5:in `add_stage_name'",
"/opt/ruby/gems/2.5.0/gems/jets-2.3.18/lib/jets/overrides/rails/url_helper.rb:21:in `url_for'",
"/opt/ruby/gems/2.5.0/gems/actionview- `link_to'",

If you need the full stack trace let me know.

The request variable is ending up nil inside of the overridden add_stage_name method.

I’m not entirely familiar with Jets, but commenting out the call to add_stage_name inside of the overridden url_for seemed to at least let me send/see emails locally, but once deploying to lambda, I encounter the same issue.

Code flow is:
job (15 minute trigger) -> service -> mailer

Relevant code:

<%= link_to(
) %>

Let me know if anymore info/stack is needed. Any help would be appreciated, would rather not go commenting out line of codes from the gem.

Edit: using SMTP (AWS SES) to send the mail if that matters

Opened an issue as I believe this is a bug.