[x] Upgrade Jets: Are you using the latest version of Jets? This allows Jets to fix issues fast. There's a jets upgrade command that makes this a simple task. There's also an Upgrading Guide: http://rubyonjets.com/docs/upgrading/
[x] Reproducibility: Are you reporting a bug others will be able to reproduce and not asking a question. If you're unsure or want to ask a question, do so on https://community.rubyonjets.com
[x] Code sample: Have you put together a code sample to reproduce the issue and make it available? Code samples help speed up fixes dramatically. If it's an easily reproducible issue, then code samples are not needed. If you're unsure, please include a code sample.
Jets deploy the project with lambda gateway code given in code sample. Also put AWS Lambda function inside VPC with privileges (subnets etc...) to access public internet.
The error happens intermittently so sometime function will work fine and sometime it fails.
`Jets.once` sometime stuck with “Init” error on AWS lambda
...Simple Ruby/Jets AWS lambda function which is running under VPC with all the privileges to access public internet, sometime fails to execute with “InitSeahorse::Client::NetworkingError” . The function do not have any code except to return simple string...
Code Sample
require "bundler/setup"
require "jets"
Jets.once # runs once in lambda execution context
def index(event:, context:)
return "Success"
end
Checklist
jets upgrade
command that makes this a simple task. There's also an Upgrading Guide: http://rubyonjets.com/docs/upgrading/My Environment
Expected Behaviour
Lambda Function should return simple string
Current Behavior
Step-by-step reproduction instructions
Jets deploy the project with lambda gateway code given in code sample. Also put AWS Lambda function inside VPC with privileges (subnets etc...) to access public internet. The error happens intermittently so sometime function will work fine and sometime it fails.
`Jets.once` sometime stuck with “Init” error on AWS lambda
...Simple Ruby/Jets AWS lambda function which is running under VPC with all the privileges to access public internet, sometime fails to execute with “InitSeahorse::Client::NetworkingError” . The function do not have any code except to return simple string...Code Sample
Solution Suggestion