question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Sandbox not functioning as expected

See original GitHub issue

Describe the issue Following the Quick Start guidance proves unfruitful for sandbox mode on macOS

Steps to reproduce Steps to reproduce the behavior: environment

node --version
v10.16.3

which node
/Users/jdavila/.nvm/versions/node/v10.16.3/bin/node

which arc
/Users/jdavila/.nvm/versions/node/v10.16.3/bin/arc

.arc

@app
init

@http
get /

@aws
runtime nodejs10.x
profile default
region us-east-1
bucket arc-codes-testing

Steps

  1. arc sandbox which produces
    $ arc sandbox
       App ⌁ init
       Region ⌁ us-east-1
       Profile ⌁ default
       Version ⌁ Architect 6.0.28
       cwd ⌁ /Users/jdavila/Repos/arc-tinker
    
      ✓ Sandbox Found Architect manifest, starting up
      ✓ Sandbox Project files hydrated into functions
      ✓ Sandbox Loaded routes
          get / ................................. get-index
    
      ✓ Sandbox Sandbox started in 60ms
      ✈︎ Local environment ready!
    
          http://localhost:3333
    
  2. Then navigate to http://localhost:3333 in the browser
  3. Get generic Not Found browser page
  4. Terminal displays
    /Users/jdavila/.nvm/versions/node/v10.16.3/lib/node_modules/@architect/architect/node_modules/@architect/sandbox/src/invoke-lambda/index.js:48
         runtimes[runtime](options, timeout, callback)
                       ^
    
    TypeError: runtimes[runtime] is not a function
        at done (/Users/jdavila/.nvm/versions/node/v10.16.3/lib/node_modules/@architect/architect/node_modules/@architect/sandbox/src/invoke-lambda/index.js:48:24)
        at done (/Users/jdavila/.nvm/versions/node/v10.16.3/lib/node_modules/@architect/architect/node_modules/@architect/sandbox/src/invoke-lambda/get-config.js:18:7)
        at FSReqWrap.readFileAfterClose [as oncomplete] (internal/fs/read_file_context.js:53:3)
    

Expected behavior I would expect it to work as described in the docs

Screenshots If applicable, add screenshots to help explain your problem

Desktop Please complete the following information (if appropriate):

  • OS: MacOS Catalina 10.15.2
  • Browser: Firefox
  • Version: 71.0

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
ryanblockcommented, Jan 3, 2020

I know there was some work recently done in the runtime configuration code paths, cc @brianleroux

0reactions
ryanblockcommented, Jan 16, 2020

Sorry @defionscode! Was actually fixed on the 7th, forgot to update this issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Windows Sandbox not working - Microsoft Community
Now move File Explorer Options to one side of your screen. Go back to Control Panel ; Locate and open Program and Features....
Read more >
Issues setting up sandbox on Windows 10 - and discovered a fix
Hello, so I had some issues setting up sandbox on Windows 10 with docker and git bash. Went through the steps exactly. There...
Read more >
Is the sandbox server down? | Apple Developer Forums
I have production and sandbox certificates set up for two different apps. Today the sandbox certificates stopped working for both apps, but the...
Read more >
Type Mismatch - 1st argument to sandbox is not what I expect
This makes the compiler unhappy, because it thinks that model should be ( Model, Cmd msg ) instead of just Model . element...
Read more >
Troubleshooting the “Failed to Create Pod Sandbox” Error
The “failed to create pod sandbox” error is a common problem when you're trying to create a pod in Kubernetes. This article will...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found