{"action":"created","issue":{"url":"https://api.github.com/repos/prismagraphql/chromeless/issues/99","repository_url":"https://api.github.com/repos/prismagraphql/chromeless","labels_url":"https://api.github.com/repos/prismagraphql/chromeless/issues/99/labels{/name}","comments_url":"https://api.github.com/repos/prismagraphql/chromeless/issues/99/comments","events_url":"https://api.github.com/repos/prismagraphql/chromeless/issues/99/events","html_url":"https://github.com/prismagraphql/chromeless/issues/99","id":246579544,"node_id":"MDU6SXNzdWUyNDY1Nzk1NDQ=","number":99,"title":"IOT endpoint Timed out after 30sec. Connection couldn't be established.","user":{"login":"stevenfitzpatrick","id":23268855,"node_id":"MDQ6VXNlcjIzMjY4ODU1","avatar_url":"https://avatars0.githubusercontent.com/u/23268855?v=4","gravatar_id":"","url":"https://api.github.com/users/stevenfitzpatrick","html_url":"https://github.com/stevenfitzpatrick","followers_url":"https://api.github.com/users/stevenfitzpatrick/followers","following_url":"https://api.github.com/users/stevenfitzpatrick/following{/other_user}","gists_url":"https://api.github.com/users/stevenfitzpatrick/gists{/gist_id}","starred_url":"https://api.github.com/users/stevenfitzpatrick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevenfitzpatrick/subscriptions","organizations_url":"https://api.github.com/users/stevenfitzpatrick/orgs","repos_url":"https://api.github.com/users/stevenfitzpatrick/repos","events_url":"https://api.github.com/users/stevenfitzpatrick/events{/privacy}","received_events_url":"https://api.github.com/users/stevenfitzpatrick/received_events","type":"User","site_admin":false},"labels":[{"id":657004881,"node_id":"MDU6TGFiZWw2NTcwMDQ4ODE=","url":"https://api.github.com/repos/prismagraphql/chromeless/labels/Proxy","name":"Proxy","color":"FE05E7","default":false},{"id":617721013,"node_id":"MDU6TGFiZWw2MTc3MjEwMTM=","url":"https://api.github.com/repos/prismagraphql/chromeless/labels/help%20wanted","name":"help wanted","color":"128A0C","default":true},{"id":617721015,"node_id":"MDU6TGFiZWw2MTc3MjEwMTU=","url":"https://api.github.com/repos/prismagraphql/chromeless/labels/question","name":"question","color":"cc317c","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/prismagraphql/chromeless/milestones/6","html_url":"https://github.com/prismagraphql/chromeless/milestone/6","labels_url":"https://api.github.com/repos/prismagraphql/chromeless/milestones/6/labels","id":3011891,"node_id":"MDk6TWlsZXN0b25lMzAxMTg5MQ==","number":6,"title":"Improve Proxy Service's Reliability","description":"","creator":{"login":"adieuadieu","id":438848,"node_id":"MDQ6VXNlcjQzODg0OA==","avatar_url":"https://avatars1.githubusercontent.com/u/438848?v=4","gravatar_id":"","url":"https://api.github.com/users/adieuadieu","html_url":"https://github.com/adieuadieu","followers_url":"https://api.github.com/users/adieuadieu/followers","following_url":"https://api.github.com/users/adieuadieu/following{/other_user}","gists_url":"https://api.github.com/users/adieuadieu/gists{/gist_id}","starred_url":"https://api.github.com/users/adieuadieu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adieuadieu/subscriptions","organizations_url":"https://api.github.com/users/adieuadieu/orgs","repos_url":"https://api.github.com/users/adieuadieu/repos","events_url":"https://api.github.com/users/adieuadieu/events{/privacy}","received_events_url":"https://api.github.com/users/adieuadieu/received_events","type":"User","site_admin":false},"open_issues":8,"closed_issues":1,"state":"open","created_at":"2018-01-04T01:57:40Z","updated_at":"2018-01-04T03:45:10Z","due_on":null,"closed_at":null},"comments":45,"created_at":"2017-07-30T11:58:41Z","updated_at":"2018-07-02T07:17:08Z","closed_at":null,"author_association":"NONE","body":"Hi,\r\n\r\nI keep running into the following issue when trying to call the proxy chrome set up when I try call chromeless with the remote set up.\r\n\r\n\"Timed out after 30sec. Connection couldn't be established.\"\r\n\r\nI tried from Windows, Ubuntu and from another AWS Lambda always resulting in the above error message.\r\n\r\nHave completed step 1 for the proxy set up and deployed The Proxy service to AWS Lambda.\r\n\r\nSteps I have done\r\n\r\n- Changed the url for awsIotHost in the serverless.yml\r\n- Changed region in the  serverless.yml\r\n- ran npm run deploy successfully and made note of the api key and url.\r\n\r\nBut the after that I am unable to call this proxy without running into the error \"Timed out after 30sec. Connection couldn't be established.\".\r\n\r\nThe script I am running is pretty simple i.e.\r\n\r\n```\r\n  const chromeless = new Chromeless({\r\n    remote: {\r\n      endpointUrl: 'https://xxxxxxxxxx.execute-api.eu-west-1.amazonaws.com/dev',\r\n      apiKey: mykey\r\n    }\r\n  });\r\n\r\nconst links = await chromeless\r\n    .goto('https://www.google.com')\r\n    .type('chromeless', 'input[name=\"q\"]')\r\n    .press(13)\r\n    .wait('#resultStats')\r\n    .evaluate(() => {\r\n      // this will be executed in headless chrome\r\n      const links = [].map.call(document.querySelectorAll('.g h3 a'), a => ({\r\n        title: a.innerText,\r\n        href: a.href\r\n      }));\r\n      return JSON.stringify(links);\r\n    })\r\n    // you can still use the method chaining API after evaluating\r\n    // when you're done, at any time you can call `.then` (in our case `await`)\r\n    .scrollTo(0, 1000);\r\n```\r\n\r\nAlways results in\r\n\r\n> node chrome.js\r\n> Error: Timed out after 30sec. Connection couldn't be established.\r\n>     at Timeout._onTimeout (C:\\dev\\cb-headless-chrome\\node_modules\\chromeless\\dist\\src\\chrome\\remote.js:73:52)\r\n>     at ontimeout (timers.js:488:11)\r\n>     at tryOnTimeout (timers.js:323:5)\r\n>     at Timer.listOnTimeout (timers.js:283:5)\r\n\r\nIs there some kind of permission, role I need that maybe is not in the documentation ?\r\n\r\nWould love some help since I have no idea how to progress on this, even some idea which url it can't connect to ?\r\n\r\nEDIT : After some more debugging I am finding its the IOT Host url that I can't connect to i.e.\r\n\r\nwss://xxxxxxx.iot.eu-west-1.amazon.com/.....\r\n\r\nIs there a step I am missing to allow connection to this ? I can see when I put my IOT endpoint url I can see the same kind of timeout behaviour.\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/prismagraphql/chromeless/issues/comments/401693684","html_url":"https://github.com/prismagraphql/chromeless/issues/99#issuecomment-401693684","issue_url":"https://api.github.com/repos/prismagraphql/chromeless/issues/99","id":401693684,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMTY5MzY4NA==","user":{"login":"cannalee90","id":10849633,"node_id":"MDQ6VXNlcjEwODQ5NjMz","avatar_url":"https://avatars0.githubusercontent.com/u/10849633?v=4","gravatar_id":"","url":"https://api.github.com/users/cannalee90","html_url":"https://github.com/cannalee90","followers_url":"https://api.github.com/users/cannalee90/followers","following_url":"https://api.github.com/users/cannalee90/following{/other_user}","gists_url":"https://api.github.com/users/cannalee90/gists{/gist_id}","starred_url":"https://api.github.com/users/cannalee90/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cannalee90/subscriptions","organizations_url":"https://api.github.com/users/cannalee90/orgs","repos_url":"https://api.github.com/users/cannalee90/repos","events_url":"https://api.github.com/users/cannalee90/events{/privacy}","received_events_url":"https://api.github.com/users/cannalee90/received_events","type":"User","site_admin":false},"created_at":"2018-07-02T07:17:08Z","updated_at":"2018-07-02T07:17:08Z","author_association":"NONE","body":"@atebyagrue can you tell me more specific?"}}
{"actor":{"display_login":"cannalee90"}}