{"action":"created","issue":{"url":"https://api.github.com/repos/adieuadieu/serverless-chrome/issues/41","repository_url":"https://api.github.com/repos/adieuadieu/serverless-chrome","labels_url":"https://api.github.com/repos/adieuadieu/serverless-chrome/issues/41/labels{/name}","comments_url":"https://api.github.com/repos/adieuadieu/serverless-chrome/issues/41/comments","events_url":"https://api.github.com/repos/adieuadieu/serverless-chrome/issues/41/events","html_url":"https://github.com/adieuadieu/serverless-chrome/issues/41","id":243037177,"number":41,"title":"Reliability on lambda","user":{"login":"benjaminwood","id":1232531,"avatar_url":"https://avatars3.githubusercontent.com/u/1232531?v=4","gravatar_id":"","url":"https://api.github.com/users/benjaminwood","html_url":"https://github.com/benjaminwood","followers_url":"https://api.github.com/users/benjaminwood/followers","following_url":"https://api.github.com/users/benjaminwood/following{/other_user}","gists_url":"https://api.github.com/users/benjaminwood/gists{/gist_id}","starred_url":"https://api.github.com/users/benjaminwood/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benjaminwood/subscriptions","organizations_url":"https://api.github.com/users/benjaminwood/orgs","repos_url":"https://api.github.com/users/benjaminwood/repos","events_url":"https://api.github.com/users/benjaminwood/events{/privacy}","received_events_url":"https://api.github.com/users/benjaminwood/received_events","type":"User","site_admin":false},"labels":[{"id":558236657,"url":"https://api.github.com/repos/adieuadieu/serverless-chrome/labels/bug","name":"bug","color":"ee0701","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":66,"created_at":"2017-07-14T15:51:44Z","updated_at":"2018-03-15T13:15:40Z","closed_at":"2017-11-19T18:43:37Z","author_association":"CONTRIBUTOR","body":"First of all, thanks @adieuadieu for your work on this project. It's been really helpful to me!\r\n\r\nI'm opening this ticket in hopes that we can have some discussion around the reliability of launching & connecting to chrome on lambda. I'm working with the latest packages from the develop branch, so I realize/acknowledge that *there may be bugs*.\r\n\r\nReally what I'm hoping to figure out is if the problems I'm having are specific to me, or if there are general problems that are known and need work. If we can identify what those problems are, perhaps we, the community, can help!\r\n\r\nI can get real specific and share application code & backtraces, but before we get to that, perhaps we can establish if this behavior is common. If I'm the only one experiencing these problems, then this ticket should be handled differently (as a cry for help!).\r\n\r\n1. The first few invocations of my function typically work as expected (hurray!).\r\n2. If I invoke the function multiple times in a row (quickly), the service begins to fail with `ECONNREFUSED`. Here's an example from the log: \r\n\r\nhttps://gist.github.com/benjaminwood/21dbdb95cbd140dae67460f200cbf7ec\r\n\r\nIt is common that after it fails like this, all additional invocations fail the same way until a new container is spun up (with time or by deploying new code). It appears that a chrome process is running, but it may be hung/frozen. \r\n\r\nFor your reference, my function cleans up after itself like this:\r\n\r\n```\r\nawait CDP.Close({id: client.target.id})\r\nawait client.close()\r\n```\r\n\r\nI'm not killing the chrome process, but I am closing the tab and the connection (client). I believe this is the correct thing to do, but feel free to give input, I'd appreciate it!\r\n\r\n**So**, is this happening to anyone else? I did try running some of the examples here in the repo and ran into the same problems. So at first review, it appears at though the problem is not 100% specific to my situation."},"comment":{"url":"https://api.github.com/repos/adieuadieu/serverless-chrome/issues/comments/373371746","html_url":"https://github.com/adieuadieu/serverless-chrome/issues/41#issuecomment-373371746","issue_url":"https://api.github.com/repos/adieuadieu/serverless-chrome/issues/41","id":373371746,"user":{"login":"sorenbs","id":281337,"avatar_url":"https://avatars3.githubusercontent.com/u/281337?v=4","gravatar_id":"","url":"https://api.github.com/users/sorenbs","html_url":"https://github.com/sorenbs","followers_url":"https://api.github.com/users/sorenbs/followers","following_url":"https://api.github.com/users/sorenbs/following{/other_user}","gists_url":"https://api.github.com/users/sorenbs/gists{/gist_id}","starred_url":"https://api.github.com/users/sorenbs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sorenbs/subscriptions","organizations_url":"https://api.github.com/users/sorenbs/orgs","repos_url":"https://api.github.com/users/sorenbs/repos","events_url":"https://api.github.com/users/sorenbs/events{/privacy}","received_events_url":"https://api.github.com/users/sorenbs/received_events","type":"User","site_admin":false},"created_at":"2018-03-15T13:15:40Z","updated_at":"2018-03-15T13:15:40Z","author_association":"NONE","body":"@orporan if you are open to investing some time into figuring this out together with AWS, then I can probably put you in touch with the right people on the Lambda team. Would you be open to that?"}}
{"actor":{"display_login":"sorenbs"}}