{"action":"created","issue":{"url":"https://api.github.com/repos/serverless/serverless/issues/2731","repository_url":"https://api.github.com/repos/serverless/serverless","labels_url":"https://api.github.com/repos/serverless/serverless/issues/2731/labels{/name}","comments_url":"https://api.github.com/repos/serverless/serverless/issues/2731/comments","events_url":"https://api.github.com/repos/serverless/serverless/issues/2731/events","html_url":"https://github.com/serverless/serverless/issues/2731","id":190011396,"number":2731,"title":"Suddenly timeouts with every deploy","user":{"login":"ksnyde","id":980757,"avatar_url":"https://avatars.githubusercontent.com/u/980757?v=3","gravatar_id":"","url":"https://api.github.com/users/ksnyde","html_url":"https://github.com/ksnyde","followers_url":"https://api.github.com/users/ksnyde/followers","following_url":"https://api.github.com/users/ksnyde/following{/other_user}","gists_url":"https://api.github.com/users/ksnyde/gists{/gist_id}","starred_url":"https://api.github.com/users/ksnyde/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ksnyde/subscriptions","organizations_url":"https://api.github.com/users/ksnyde/orgs","repos_url":"https://api.github.com/users/ksnyde/repos","events_url":"https://api.github.com/users/ksnyde/events{/privacy}","received_events_url":"https://api.github.com/users/ksnyde/received_events","type":"User","site_admin":false},"labels":[{"id":417327117,"url":"https://api.github.com/repos/serverless/serverless/labels/bug","name":"bug","color":"ff0000","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":20,"created_at":"2016-11-17T10:52:45Z","updated_at":"2016-11-17T15:32:21Z","closed_at":null,"body":"# What went wrong\r\n\r\nHave been using serverless for a few small Lambda functions and have really been enjoying it. All functions are very small but there are some additional deps in the graph and I notice that my last successful deployment was 178mb which is surprising because I thought Lambda limit was 50mb but maybe that's just the way Serverless packages things up? As you can see even now my dependencies are quite small:\r\n\r\n![image](https://cloud.githubusercontent.com/assets/980757/20386125/142ab826-acb2-11e6-8272-a129379ea0ef.png)\r\n\r\nIn any event, I went looking for other issues like mine and it seems there have been some but none open. In any event one thing I saw mentioned was trying:\r\n\r\n```sh\r\nSLS_DEBUG=true sls deploy -v\r\n```\r\n\r\nI tried that but the only additional info was a stack trace:\r\n\r\n```sh\r\nServerlessError: Connection timed out after 120000ms\r\n    at Response.req.send (/usr/local/lib/node_modules/serverless/lib/plugins/aws/provider/awsProvider.js:142:20)\r\n    at Request.<anonymous> (/usr/local/lib/node_modules/serverless/node_modules/aws-sdk/lib/request.js:355:18)\r\n    at Request.callListeners (/usr/local/lib/node_modules/serverless/node_modules/aws-sdk/lib/sequential_executor.js:105:20)\r\n    at Request.emit (/usr/local/lib/node_modules/serverless/node_modules/aws-sdk/lib/sequential_executor.js:77:10)\r\n    at Request.emit (/usr/local/lib/node_modules/serverless/node_modules/aws-sdk/lib/request.js:668:14)\r\n    at Request.transition (/usr/local/lib/node_modules/serverless/node_modules/aws-sdk/lib/request.js:22:10)\r\n    at AcceptorStateMachine.runTo (/usr/local/lib/node_modules/serverless/node_modules/aws-sdk/lib/state_machine.js:14:12)\r\n    at /usr/local/lib/node_modules/serverless/node_modules/aws-sdk/lib/state_machine.js:26:10\r\n    at Request.<anonymous> (/usr/local/lib/node_modules/serverless/node_modules/aws-sdk/lib/request.js:38:9)\r\n    at Request.<anonymous> (/usr/local/lib/node_modules/serverless/node_modules/aws-sdk/lib/request.js:670:12)\r\n    at Request.callListeners (/usr/local/lib/node_modules/serverless/node_modules/aws-sdk/lib/sequential_executor.js:115:18)\r\n    at Request.emit (/usr/local/lib/node_modules/serverless/node_modules/aws-sdk/lib/sequential_executor.js:77:10)\r\n    at Request.emit (/usr/local/lib/node_modules/serverless/node_modules/aws-sdk/lib/request.js:668:14)\r\n```\r\n\r\nWith the main error message being:\r\n\r\n```\r\n  Get Support --------------------------------------------\r\n     Docs:          docs.serverless.com\r\n     Bugs:          github.com/serverless/serverless/issues\r\n\r\n  Your Environment Information -----------------------------\r\n     OS:                 darwin\r\n     Node Version:       6.9.1\r\n     Serverless Version: 1.1.0\r\n```\r\n\r\n# Expected Outcome\r\n\r\nThese are very small lambda functions, I'd have expected them to go right through. I'm also concerned about the Lambda sizes that are showing up in AWS:\r\n\r\n![image](https://cloud.githubusercontent.com/assets/980757/20386325/1161e438-acb3-11e6-9e97-c025ec2b128d.png)\r\n\r\npotentially this is just my mis-understanding but these look way out of proportion to what they should be.\r\n\r\n# Configuration\r\n\r\nI'm on MacOS, using serverless version `1.1.0` and my `serverless.yml` has the following config:\r\n\r\n```yml\r\nservice: mycompany-services\r\n\r\nprovider:\r\n  name: aws\r\n  runtime: nodejs4.3\r\n  profile: truecash\r\n  stage: prod\r\n  region: eu-west-1\r\n\r\nfunctions:\r\n  authorize:\r\n    handler: lib/authorize.handler\r\n    events:\r\n      - http: GET accounting/authorize\r\n\r\n  accessToken:\r\n    handler: lib/access-token.handler\r\n    events:\r\n      - http: GET accounting/accessToken\r\n\r\n  accounting:\r\n    handler: lib/get-accounting.handler\r\n    events:\r\n      - http: GET accounting/get\r\n```\r\n\r\nAs a next step I will try using the [serverless-optimizer-plugin](https://github.com/serverless/serverless-optimizer-plugin) that I noticed when researching this issue. Regardless if this helps me get this working I feel my very limited functions should work without the need for compression and so I'm raising this now."},"comment":{"url":"https://api.github.com/repos/serverless/serverless/issues/comments/261278342","html_url":"https://github.com/serverless/serverless/issues/2731#issuecomment-261278342","issue_url":"https://api.github.com/repos/serverless/serverless/issues/2731","id":261278342,"user":{"login":"pmuens","id":1606004,"avatar_url":"https://avatars.githubusercontent.com/u/1606004?v=3","gravatar_id":"","url":"https://api.github.com/users/pmuens","html_url":"https://github.com/pmuens","followers_url":"https://api.github.com/users/pmuens/followers","following_url":"https://api.github.com/users/pmuens/following{/other_user}","gists_url":"https://api.github.com/users/pmuens/gists{/gist_id}","starred_url":"https://api.github.com/users/pmuens/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pmuens/subscriptions","organizations_url":"https://api.github.com/users/pmuens/orgs","repos_url":"https://api.github.com/users/pmuens/repos","events_url":"https://api.github.com/users/pmuens/events{/privacy}","received_events_url":"https://api.github.com/users/pmuens/received_events","type":"User","site_admin":false},"created_at":"2016-11-17T15:32:21Z","updated_at":"2016-11-17T15:32:21Z","body":"Awesome! Great to hear that it works.\r\n\r\nPlease let us know where those docs are so that those can be changed. 👍 "}}
{"actor":{"display_login":"pmuens"}}