I get this error when I try to deploy to AWS; I am 100% sure my AWS credentials are correct.
Tidying project: removing ignored files to reduce package size.
=> rsync -a --links /tmp/jets/pcp_jets_app/stage/code/vendor/gems/ruby/2.7.0/ /tmp/jets/pcp_jets_app/stage/opt/ruby/gems/2.7.0/
=> Replacing compiled gems with AWS Lambda Linux compiled versions: /tmp/jets/pcp_jets_app/stage/opt
Checking projects gems for binary serverlessgems...
Traceback (most recent call last):
36: from /Users/adnanmateen/.rvm/gems/ruby-2.7.6/bin/ruby_executable_hooks:22:in `<main>'
35: from /Users/adnanmateen/.rvm/gems/ruby-2.7.6/bin/ruby_executable_hooks:22:in `eval'
34: from /Users/adnanmateen/.rvm/gems/ruby-2.7.6/bin/jets:23:in `<main>'
33: from /Users/adnanmateen/.rvm/gems/ruby-2.7.6/bin/jets:23:in `load'
32: from /Users/adnanmateen/.rvm/gems/ruby-2.7.6/gems/jets-3.2.0/exe/jets:14:in `<top (required)>'
31: from /Users/adnanmateen/.rvm/gems/ruby-2.7.6/gems/jets-3.2.0/lib/jets/cli.rb:5:in `start'
30: from /Users/adnanmateen/.rvm/gems/ruby-2.7.6/gems/jets-3.2.0/lib/jets/cli.rb:28:in `start'
29: from /Users/adnanmateen/.rvm/gems/ruby-2.7.6/gems/jets-3.2.0/lib/jets/commands/base.rb:27:in `perform'
28: from /Users/adnanmateen/.rvm/gems/ruby-2.7.6/gems/jets-3.2.0/lib/jets/commands/base.rb:38:in `dispatch'
27: from /Users/adnanmateen/.rvm/gems/ruby-2.7.6/gems/thor-1.2.1/lib/thor.rb:392:in `dispatch'
26: from /Users/adnanmateen/.rvm/gems/ruby-2.7.6/gems/thor-1.2.1/lib/thor/invocation.rb:127:in `invoke_command'
25: from /Users/adnanmateen/.rvm/gems/ruby-2.7.6/gems/thor-1.2.1/lib/thor/command.rb:27:in `run'
24: from /Users/adnanmateen/.rvm/gems/ruby-2.7.6/gems/jets-3.2.0/lib/jets/commands/main.rb:27:in `deploy'
23: from /Users/adnanmateen/.rvm/gems/ruby-2.7.6/gems/jets-3.2.0/lib/jets/commands/deploy.rb:32:in `run'
22: from /Users/adnanmateen/.rvm/gems/ruby-2.7.6/gems/jets-3.2.0/lib/jets/commands/deploy.rb:61:in `build_code'
21: from /Users/adnanmateen/.rvm/gems/ruby-2.7.6/gems/jets-3.2.0/lib/jets/commands/build.rb:27:in `build_code'
20: from /Users/adnanmateen/.rvm/gems/ruby-2.7.6/gems/jets-3.2.0/lib/jets/builders/code_builder.rb:38:in `build'
19: from /Users/adnanmateen/.rvm/gems/ruby-2.7.6/gems/jets-3.2.0/lib/jets/builders/code_builder.rb:38:in `chdir'
18: from /Users/adnanmateen/.rvm/gems/ruby-2.7.6/gems/jets-3.2.0/lib/jets/builders/code_builder.rb:41:in `block in build'
17: from /Users/adnanmateen/.rvm/gems/ruby-2.7.6/gems/jets-3.2.0/lib/jets/builders/code_builder.rb:384:in `package_ruby'
16: from /Users/adnanmateen/.rvm/gems/ruby-2.7.6/gems/jets-3.2.0/lib/jets/builders/code_builder.rb:395:in `build_lambda_layer'
15: from /Users/adnanmateen/.rvm/gems/ruby-2.7.6/gems/jets-3.2.0/lib/jets/builders/lambda_layer.rb:10:in `build'
14: from /Users/adnanmateen/.rvm/gems/ruby-2.7.6/gems/jets-3.2.0/lib/jets/builders/lambda_layer.rb:65:in `replace_compiled_gems'
13: from /Users/adnanmateen/.rvm/gems/ruby-2.7.6/gems/jets-3.2.0/lib/jets/builders/gem_replacer.rb:20:in `run'
12: from /Users/adnanmateen/.rvm/gems/ruby-2.7.6/gems/jets-3.2.0/lib/jets/builders/gem_replacer.rb:20:in `each'
11: from /Users/adnanmateen/.rvm/gems/ruby-2.7.6/gems/jets-3.2.0/lib/jets/builders/gem_replacer.rb:22:in `block in run'
10: from /Users/adnanmateen/.rvm/gems/ruby-2.7.6/gems/serverlessgems-0.2.0/lib/jets/gems/extract/gem.rb:11:in `run'
9: from /Users/adnanmateen/.rvm/gems/ruby-2.7.6/gems/serverlessgems-0.2.0/lib/jets/gems/extract/gem.rb:55:in `download_gem'
8: from /Users/adnanmateen/.rvm/gems/ruby-2.7.6/gems/serverlessgems-0.2.0/lib/jets/gems/extract/base.rb:44:in `download_file'
7: from /Users/adnanmateen/.rvm/rubies/ruby-2.7.6/lib/ruby/2.7.0/open-uri.rb:50:in `open'
6: from /Users/adnanmateen/.rvm/rubies/ruby-2.7.6/lib/ruby/2.7.0/open-uri.rb:744:in `open'
5: from /Users/adnanmateen/.rvm/rubies/ruby-2.7.6/lib/ruby/2.7.0/open-uri.rb:174:in `open_uri'
4: from /Users/adnanmateen/.rvm/rubies/ruby-2.7.6/lib/ruby/2.7.0/open-uri.rb:233:in `open_loop'
3: from /Users/adnanmateen/.rvm/rubies/ruby-2.7.6/lib/ruby/2.7.0/open-uri.rb:233:in `catch'
2: from /Users/adnanmateen/.rvm/rubies/ruby-2.7.6/lib/ruby/2.7.0/open-uri.rb:235:in `block in open_loop'
1: from /Users/adnanmateen/.rvm/rubies/ruby-2.7.6/lib/ruby/2.7.0/open-uri.rb:764:in `buffer_open'
/Users/adnanmateen/.rvm/rubies/ruby-2.7.6/lib/ruby/2.7.0/open-uri.rb:387:in `open_http': 403 Forbidden (OpenURI::HTTPError)
When I add
Jets.application.configure do
config.gems.disable = true
end
The deployment works perfectly fine. I have narrowed it down to the issue with serverlessgems
but when I ran jets gems:check
it worked perfectly fine. Need urgent help
Thank you in Advance
Adnan