{"action":"created","issue":{"url":"https://api.github.com/repos/smallwins/begin-issues/issues/4","repository_url":"https://api.github.com/repos/smallwins/begin-issues","labels_url":"https://api.github.com/repos/smallwins/begin-issues/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/smallwins/begin-issues/issues/4/comments","events_url":"https://api.github.com/repos/smallwins/begin-issues/issues/4/events","html_url":"https://github.com/smallwins/begin-issues/issues/4","id":349374562,"node_id":"MDU6SXNzdWUzNDkzNzQ1NjI=","number":4,"title":"[begin-functions-app] Server on localhost crashes on requests","user":{"login":"kmelve","id":1131579,"node_id":"MDQ6VXNlcjExMzE1Nzk=","avatar_url":"https://avatars0.githubusercontent.com/u/1131579?v=4","gravatar_id":"","url":"https://api.github.com/users/kmelve","html_url":"https://github.com/kmelve","followers_url":"https://api.github.com/users/kmelve/followers","following_url":"https://api.github.com/users/kmelve/following{/other_user}","gists_url":"https://api.github.com/users/kmelve/gists{/gist_id}","starred_url":"https://api.github.com/users/kmelve/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kmelve/subscriptions","organizations_url":"https://api.github.com/users/kmelve/orgs","repos_url":"https://api.github.com/users/kmelve/repos","events_url":"https://api.github.com/users/kmelve/events{/privacy}","received_events_url":"https://api.github.com/users/kmelve/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2018-08-10T04:46:03Z","updated_at":"2018-08-10T06:00:54Z","closed_at":null,"author_association":"NONE","body":"**Expected behavior**\r\nThe local “server” should return a response, and not crash.\r\n\r\n\r\n**Description of bug**\r\n```\r\n~/Sites/begin-functions-app master*\r\n❯ npm start\r\n\r\n> begin-functions-app@1.0.0 start /Users/knutmelvaer/Sites/begin-functions-app\r\n> NODE_ENV=testing npx sandbox\r\n\r\n\r\n        ARC_APP_NAME test-app\r\n          AWS_REGION us-west-2\r\n         AWS_PROFILE xxx\r\n\r\n                Node 9.11.1\r\n                 npm 6.0.1\r\n                .arc 3.2.18\r\n\r\n✓ @tables created in local database\r\n✓ src/shared copied to lambda node_modules/@architect/shared\r\n✓ .arc copied to lambda node_modules/@architect/shared/.arc\r\n✓ @events pub/sub ready on local event bus\r\n\r\n @html\r\n get / ................................. get-index\r\n\r\n ✓ Started HTTP \"server\" @  http://localhost:3333\r\n{ ResourceNotFoundException: Requested resource not found\r\n    at Request.extractError (/Users/knutmelvaer/Sites/begin-functions-app/node_modules/aws-sdk/lib/protocol/json.js:48:27)\r\n    at Request.callListeners (/Users/knutmelvaer/Sites/begin-functions-app/node_modules/aws-sdk/lib/sequential_executor.js:105:20)\r\n    at Request.emit (/Users/knutmelvaer/Sites/begin-functions-app/node_modules/aws-sdk/lib/sequential_executor.js:77:10)\r\n    at Request.emit (/Users/knutmelvaer/Sites/begin-functions-app/node_modules/aws-sdk/lib/request.js:683:14)\r\n    at Request.transition (/Users/knutmelvaer/Sites/begin-functions-app/node_modules/aws-sdk/lib/request.js:22:10)\r\n    at AcceptorStateMachine.runTo (/Users/knutmelvaer/Sites/begin-functions-app/node_modules/aws-sdk/lib/state_machine.js:14:12)\r\n    at /Users/knutmelvaer/Sites/begin-functions-app/node_modules/aws-sdk/lib/state_machine.js:26:10\r\n    at Request.<anonymous> (/Users/knutmelvaer/Sites/begin-functions-app/node_modules/aws-sdk/lib/request.js:38:9)\r\n    at Request.<anonymous> (/Users/knutmelvaer/Sites/begin-functions-app/node_modules/aws-sdk/lib/request.js:685:12)\r\n    at Request.callListeners (/Users/knutmelvaer/Sites/begin-functions-app/node_modules/aws-sdk/lib/sequential_executor.js:115:18)\r\n  message: 'Requested resource not found',\r\n  code: 'ResourceNotFoundException',\r\n  time: 2018-08-10T04:41:14.014Z,\r\n  requestId: '<redacted>',\r\n  statusCode: 400,\r\n  retryable: false,\r\n  retryDelay: 32.464603033333404 }\r\n/Users/knutmelvaer/Sites/begin-functions-app/node_modules/aws-sdk/lib/request.js:31\r\n            throw err;\r\n            ^\r\n\r\nResourceNotFoundException: Requested resource not found\r\n    at Request.extractError (/Users/knutmelvaer/Sites/begin-functions-app/node_modules/aws-sdk/lib/protocol/json.js:48:27)\r\n    at Request.callListeners (/Users/knutmelvaer/Sites/begin-functions-app/node_modules/aws-sdk/lib/sequential_executor.js:105:20)\r\n    at Request.emit (/Users/knutmelvaer/Sites/begin-functions-app/node_modules/aws-sdk/lib/sequential_executor.js:77:10)\r\n    at Request.emit (/Users/knutmelvaer/Sites/begin-functions-app/node_modules/aws-sdk/lib/request.js:683:14)\r\n    at Request.transition (/Users/knutmelvaer/Sites/begin-functions-app/node_modules/aws-sdk/lib/request.js:22:10)\r\n    at AcceptorStateMachine.runTo (/Users/knutmelvaer/Sites/begin-functions-app/node_modules/aws-sdk/lib/state_machine.js:14:12)\r\n    at /Users/knutmelvaer/Sites/begin-functions-app/node_modules/aws-sdk/lib/state_machine.js:26:10\r\n    at Request.<anonymous> (/Users/knutmelvaer/Sites/begin-functions-app/node_modules/aws-sdk/lib/request.js:38:9)\r\n    at Request.<anonymous> (/Users/knutmelvaer/Sites/begin-functions-app/node_modules/aws-sdk/lib/request.js:685:12)\r\n    at Request.callListeners (/Users/knutmelvaer/Sites/begin-functions-app/node_modules/aws-sdk/lib/sequential_executor.js:115:18)\r\nnpm ERR! code ELIFECYCLE\r\nnpm ERR! errno 1\r\nnpm ERR! begin-functions-app@1.0.0 start: `NODE_ENV=testing npx sandbox`\r\n```\r\n\r\n\r\n**Steps to reproduce**\r\n1. Deleted node_modules\r\n2. Updated all dependencies to the latest version\r\n3. Run `npx hydrate`\r\n4. Run `npm start`\r\n5. Make a GET request to `localhost:3333`\r\n\r\n**Desktop**\r\n - OS: macOS[e.g. macOS]\r\n - node/npm: v9.11.1 / 6.0.1"},"comment":{"url":"https://api.github.com/repos/smallwins/begin-issues/issues/comments/411983926","html_url":"https://github.com/smallwins/begin-issues/issues/4#issuecomment-411983926","issue_url":"https://api.github.com/repos/smallwins/begin-issues/issues/4","id":411983926,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMTk4MzkyNg==","user":{"login":"kmelve","id":1131579,"node_id":"MDQ6VXNlcjExMzE1Nzk=","avatar_url":"https://avatars0.githubusercontent.com/u/1131579?v=4","gravatar_id":"","url":"https://api.github.com/users/kmelve","html_url":"https://github.com/kmelve","followers_url":"https://api.github.com/users/kmelve/followers","following_url":"https://api.github.com/users/kmelve/following{/other_user}","gists_url":"https://api.github.com/users/kmelve/gists{/gist_id}","starred_url":"https://api.github.com/users/kmelve/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kmelve/subscriptions","organizations_url":"https://api.github.com/users/kmelve/orgs","repos_url":"https://api.github.com/users/kmelve/repos","events_url":"https://api.github.com/users/kmelve/events{/privacy}","received_events_url":"https://api.github.com/users/kmelve/received_events","type":"User","site_admin":false},"created_at":"2018-08-10T06:00:54Z","updated_at":"2018-08-10T06:00:54Z","author_association":"NONE","body":"(I thought ARC_LOCAL=1 was something I did the last time we troubleshot this, but putting it in again didn't help either)\r\n\r\nHey, making dev software that should run on all the weird environments isn't easy. Just give me a ping when you're ready to look at this again 🙌"}}
{"actor":{"display_login":"kmelve"}}