{"action":"opened","number":42,"pull_request":{"url":"https://api.github.com/repos/appium/appium-mac-driver/pulls/42","id":359221601,"node_id":"MDExOlB1bGxSZXF1ZXN0MzU5MjIxNjAx","html_url":"https://github.com/appium/appium-mac-driver/pull/42","diff_url":"https://github.com/appium/appium-mac-driver/pull/42.diff","patch_url":"https://github.com/appium/appium-mac-driver/pull/42.patch","issue_url":"https://api.github.com/repos/appium/appium-mac-driver/issues/42","number":42,"state":"open","locked":false,"title":"[WIP] Make port/host name configurable","user":{"login":"KazuCocoa","id":5511591,"node_id":"MDQ6VXNlcjU1MTE1OTE=","avatar_url":"https://avatars3.githubusercontent.com/u/5511591?v=4","gravatar_id":"","url":"https://api.github.com/users/KazuCocoa","html_url":"https://github.com/KazuCocoa","followers_url":"https://api.github.com/users/KazuCocoa/followers","following_url":"https://api.github.com/users/KazuCocoa/following{/other_user}","gists_url":"https://api.github.com/users/KazuCocoa/gists{/gist_id}","starred_url":"https://api.github.com/users/KazuCocoa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KazuCocoa/subscriptions","organizations_url":"https://api.github.com/users/KazuCocoa/orgs","repos_url":"https://api.github.com/users/KazuCocoa/repos","events_url":"https://api.github.com/users/KazuCocoa/events{/privacy}","received_events_url":"https://api.github.com/users/KazuCocoa/received_events","type":"User","site_admin":false},"body":"Related to https://github.com/appium/appium-for-mac/issues/79\r\n\r\n@sankalpphirke \r\nWhat about with this branch?\r\nYou can configure the host/port with `a4mHost` and `a4mPort` capabilities.\r\n\r\ni.e.\r\n```\r\n[HTTP] --> POST /wd/hub/session\r\n[HTTP] {\"desiredCapabilities\":{\"automationName\":\"mac\",\"platformName\":\"mac\",\"a4mHost\":\"localhost\",\"a4mPort\":9090},\"capabilities\":{\"firstMatch\":[{\"appium:automationName\":\"mac\",\"platformName\":\"mac\",\"appium:a4mHost\":\"localhost\",\"appium:a4mPort\":9090}]}}\r\n[debug] [W3C] Calling AppiumDriver.createSession() with args: [{\"automationName\":\"mac\",\"platformName\":\"mac\",\"a4mHost\":\"localhost\",\"a4mPort\":9090},null,{\"firstMatch\":[{\"appium:automationName\":\"mac\",\"platformName\":\"mac\",\"appium:a4mHost\":\"localhost\",\"appium:a4mPort\":9090}]}]\r\n[debug] [BaseDriver] Event 'newSessionRequested' logged at 1578150445992 (00:07:25 GMT+0900 (Japan Standard Time))\r\n[Appium] Appium v1.16.0-beta.3 creating new MacDriver (v1.8.0) session\r\n[debug] [BaseDriver] W3C capabilities and MJSONWP desired capabilities were provided\r\n[debug] [BaseDriver] Creating session with W3C capabilities: {\r\n[debug] [BaseDriver]   \"alwaysMatch\": {\r\n[debug] [BaseDriver]     \"platformName\": \"mac\",\r\n[debug] [BaseDriver]     \"appium:automationName\": \"mac\",\r\n[debug] [BaseDriver]     \"appium:a4mHost\": \"localhost\",\r\n[debug] [BaseDriver]     \"appium:a4mPort\": 9090\r\n[debug] [BaseDriver]   },\r\n[debug] [BaseDriver]   \"firstMatch\": [\r\n[debug] [BaseDriver]     {}\r\n[debug] [BaseDriver]   ]\r\n[debug] [BaseDriver] }\r\n[BaseDriver] Session created with session id: 49941c74-9178-4e07-aa22-bdbf6da7445e\r\n[MacDriver] Killing any old AppiumForMac\r\n[MacDriver] Successfully cleaned up old Appium4Mac servers\r\n[MacDriver] Spawning AppiumForMac with: undefined\r\n[Appium4Mac] [STDERR] 2020-01-05 00:07:26:914 AppiumForMac[59877:307] HTTPServer: Started HTTP server on port 4622\r\n[debug] [WD Proxy] Matched '/session' to command name 'createSession'\r\n[debug] [WD Proxy] Proxying [POST /session] to [POST http://localhost:9090/wd/hub/session] with body: {\"desiredCapabilities\":{\"platformName\":\"mac\",\"automationName\":\"mac\",\"a4mHost\":\"localhost\",\"a4mPort\":9090}}\r\n[WD Proxy] Got an unexpected response with status undefined: {\"errno\":\"ECONNREFUSED\",\"code\":\"ECONNREFUSED\",\"syscall\":\"connect\",\"address\":\"127.0.0.1\",\"port\":9090}\r\n[debug] [MacDriver] Deleting AppiumForMac session\r\n[debug] [BaseDriver] Event 'newSessionStarted' logged at 1578150446934 (00:07:26 GMT+0900 (Japan Standard Time))\r\n[debug] [W3C] Encountered internal error running command: UnknownError: An unknown server-side error occurred while processing the command. Original error: Could not proxy command to remote server. Original error: Error: connect ECONNREFUSED 127.0.0.1:9090\r\n[debug] [W3C]     at JWProxy.command (/Users/kazu/GitHub/appium-mac-driver/node_modules/appium-base-driver/lib/jsonwp-proxy/proxy.js:270:13)\r\n[HTTP] <-- POST /wd/hub/session 500 957 ms - 574\r\n```\r\n\r\nYou can:\r\n\r\n```\r\ngit clone git@github.com:appium/appium.git\r\ncd appium && npm install\r\ngit clone git@github.com:KazuCocoa/appium-mac-driver.git\r\ncd appium-mac-driver && git checkout make-port-configuable && npm install && npm link\r\n\r\ncd appium && npm link appium-mac-driver\r\nnode . # in appium directory\r\n```","created_at":"2020-01-04T15:18:03Z","updated_at":"2020-01-04T15:18:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/appium/appium-mac-driver/pulls/42/commits","review_comments_url":"https://api.github.com/repos/appium/appium-mac-driver/pulls/42/comments","review_comment_url":"https://api.github.com/repos/appium/appium-mac-driver/pulls/comments{/number}","comments_url":"https://api.github.com/repos/appium/appium-mac-driver/issues/42/comments","statuses_url":"https://api.github.com/repos/appium/appium-mac-driver/statuses/56996146a2ddadac1c58f05b44457ca4ee6d5fd7","head":{"label":"KazuCocoa:make-port-configuable","ref":"make-port-configuable","sha":"56996146a2ddadac1c58f05b44457ca4ee6d5fd7","user":{"login":"KazuCocoa","id":5511591,"node_id":"MDQ6VXNlcjU1MTE1OTE=","avatar_url":"https://avatars3.githubusercontent.com/u/5511591?v=4","gravatar_id":"","url":"https://api.github.com/users/KazuCocoa","html_url":"https://github.com/KazuCocoa","followers_url":"https://api.github.com/users/KazuCocoa/followers","following_url":"https://api.github.com/users/KazuCocoa/following{/other_user}","gists_url":"https://api.github.com/users/KazuCocoa/gists{/gist_id}","starred_url":"https://api.github.com/users/KazuCocoa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KazuCocoa/subscriptions","organizations_url":"https://api.github.com/users/KazuCocoa/orgs","repos_url":"https://api.github.com/users/KazuCocoa/repos","events_url":"https://api.github.com/users/KazuCocoa/events{/privacy}","received_events_url":"https://api.github.com/users/KazuCocoa/received_events","type":"User","site_admin":false},"repo":{"id":192507407,"node_id":"MDEwOlJlcG9zaXRvcnkxOTI1MDc0MDc=","name":"appium-mac-driver","full_name":"KazuCocoa/appium-mac-driver","private":false,"owner":{"login":"KazuCocoa","id":5511591,"node_id":"MDQ6VXNlcjU1MTE1OTE=","avatar_url":"https://avatars3.githubusercontent.com/u/5511591?v=4","gravatar_id":"","url":"https://api.github.com/users/KazuCocoa","html_url":"https://github.com/KazuCocoa","followers_url":"https://api.github.com/users/KazuCocoa/followers","following_url":"https://api.github.com/users/KazuCocoa/following{/other_user}","gists_url":"https://api.github.com/users/KazuCocoa/gists{/gist_id}","starred_url":"https://api.github.com/users/KazuCocoa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KazuCocoa/subscriptions","organizations_url":"https://api.github.com/users/KazuCocoa/orgs","repos_url":"https://api.github.com/users/KazuCocoa/repos","events_url":"https://api.github.com/users/KazuCocoa/events{/privacy}","received_events_url":"https://api.github.com/users/KazuCocoa/received_events","type":"User","site_admin":false},"html_url":"https://github.com/KazuCocoa/appium-mac-driver","description":"Mac application driver for Appium","fork":true,"url":"https://api.github.com/repos/KazuCocoa/appium-mac-driver","forks_url":"https://api.github.com/repos/KazuCocoa/appium-mac-driver/forks","keys_url":"https://api.github.com/repos/KazuCocoa/appium-mac-driver/keys{/key_id}","collaborators_url":"https://api.github.com/repos/KazuCocoa/appium-mac-driver/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/KazuCocoa/appium-mac-driver/teams","hooks_url":"https://api.github.com/repos/KazuCocoa/appium-mac-driver/hooks","issue_events_url":"https://api.github.com/repos/KazuCocoa/appium-mac-driver/issues/events{/number}","events_url":"https://api.github.com/repos/KazuCocoa/appium-mac-driver/events","assignees_url":"https://api.github.com/repos/KazuCocoa/appium-mac-driver/assignees{/user}","branches_url":"https://api.github.com/repos/KazuCocoa/appium-mac-driver/branches{/branch}","tags_url":"https://api.github.com/repos/KazuCocoa/appium-mac-driver/tags","blobs_url":"https://api.github.com/repos/KazuCocoa/appium-mac-driver/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/KazuCocoa/appium-mac-driver/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/KazuCocoa/appium-mac-driver/git/refs{/sha}","trees_url":"https://api.github.com/repos/KazuCocoa/appium-mac-driver/git/trees{/sha}","statuses_url":"https://api.github.com/repos/KazuCocoa/appium-mac-driver/statuses/{sha}","languages_url":"https://api.github.com/repos/KazuCocoa/appium-mac-driver/languages","stargazers_url":"https://api.github.com/repos/KazuCocoa/appium-mac-driver/stargazers","contributors_url":"https://api.github.com/repos/KazuCocoa/appium-mac-driver/contributors","subscribers_url":"https://api.github.com/repos/KazuCocoa/appium-mac-driver/subscribers","subscription_url":"https://api.github.com/repos/KazuCocoa/appium-mac-driver/subscription","commits_url":"https://api.github.com/repos/KazuCocoa/appium-mac-driver/commits{/sha}","git_commits_url":"https://api.github.com/repos/KazuCocoa/appium-mac-driver/git/commits{/sha}","comments_url":"https://api.github.com/repos/KazuCocoa/appium-mac-driver/comments{/number}","issue_comment_url":"https://api.github.com/repos/KazuCocoa/appium-mac-driver/issues/comments{/number}","contents_url":"https://api.github.com/repos/KazuCocoa/appium-mac-driver/contents/{+path}","compare_url":"https://api.github.com/repos/KazuCocoa/appium-mac-driver/compare/{base}...{head}","merges_url":"https://api.github.com/repos/KazuCocoa/appium-mac-driver/merges","archive_url":"https://api.github.com/repos/KazuCocoa/appium-mac-driver/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/KazuCocoa/appium-mac-driver/downloads","issues_url":"https://api.github.com/repos/KazuCocoa/appium-mac-driver/issues{/number}","pulls_url":"https://api.github.com/repos/KazuCocoa/appium-mac-driver/pulls{/number}","milestones_url":"https://api.github.com/repos/KazuCocoa/appium-mac-driver/milestones{/number}","notifications_url":"https://api.github.com/repos/KazuCocoa/appium-mac-driver/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/KazuCocoa/appium-mac-driver/labels{/name}","releases_url":"https://api.github.com/repos/KazuCocoa/appium-mac-driver/releases{/id}","deployments_url":"https://api.github.com/repos/KazuCocoa/appium-mac-driver/deployments","created_at":"2019-06-18T09:19:59Z","updated_at":"2019-06-18T09:20:02Z","pushed_at":"2020-01-04T15:09:15Z","git_url":"git://github.com/KazuCocoa/appium-mac-driver.git","ssh_url":"git@github.com:KazuCocoa/appium-mac-driver.git","clone_url":"https://github.com/KazuCocoa/appium-mac-driver.git","svn_url":"https://github.com/KazuCocoa/appium-mac-driver","homepage":null,"size":48,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":0,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"appium:master","ref":"master","sha":"7f83e715e7f70ef8bf41ac5eed32585b8d4078a7","user":{"login":"appium","id":3221291,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMyMjEyOTE=","avatar_url":"https://avatars2.githubusercontent.com/u/3221291?v=4","gravatar_id":"","url":"https://api.github.com/users/appium","html_url":"https://github.com/appium","followers_url":"https://api.github.com/users/appium/followers","following_url":"https://api.github.com/users/appium/following{/other_user}","gists_url":"https://api.github.com/users/appium/gists{/gist_id}","starred_url":"https://api.github.com/users/appium/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/appium/subscriptions","organizations_url":"https://api.github.com/users/appium/orgs","repos_url":"https://api.github.com/users/appium/repos","events_url":"https://api.github.com/users/appium/events{/privacy}","received_events_url":"https://api.github.com/users/appium/received_events","type":"Organization","site_admin":false},"repo":{"id":84633088,"node_id":"MDEwOlJlcG9zaXRvcnk4NDYzMzA4OA==","name":"appium-mac-driver","full_name":"appium/appium-mac-driver","private":false,"owner":{"login":"appium","id":3221291,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMyMjEyOTE=","avatar_url":"https://avatars2.githubusercontent.com/u/3221291?v=4","gravatar_id":"","url":"https://api.github.com/users/appium","html_url":"https://github.com/appium","followers_url":"https://api.github.com/users/appium/followers","following_url":"https://api.github.com/users/appium/following{/other_user}","gists_url":"https://api.github.com/users/appium/gists{/gist_id}","starred_url":"https://api.github.com/users/appium/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/appium/subscriptions","organizations_url":"https://api.github.com/users/appium/orgs","repos_url":"https://api.github.com/users/appium/repos","events_url":"https://api.github.com/users/appium/events{/privacy}","received_events_url":"https://api.github.com/users/appium/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/appium/appium-mac-driver","description":"Mac application driver for Appium","fork":false,"url":"https://api.github.com/repos/appium/appium-mac-driver","forks_url":"https://api.github.com/repos/appium/appium-mac-driver/forks","keys_url":"https://api.github.com/repos/appium/appium-mac-driver/keys{/key_id}","collaborators_url":"https://api.github.com/repos/appium/appium-mac-driver/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/appium/appium-mac-driver/teams","hooks_url":"https://api.github.com/repos/appium/appium-mac-driver/hooks","issue_events_url":"https://api.github.com/repos/appium/appium-mac-driver/issues/events{/number}","events_url":"https://api.github.com/repos/appium/appium-mac-driver/events","assignees_url":"https://api.github.com/repos/appium/appium-mac-driver/assignees{/user}","branches_url":"https://api.github.com/repos/appium/appium-mac-driver/branches{/branch}","tags_url":"https://api.github.com/repos/appium/appium-mac-driver/tags","blobs_url":"https://api.github.com/repos/appium/appium-mac-driver/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/appium/appium-mac-driver/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/appium/appium-mac-driver/git/refs{/sha}","trees_url":"https://api.github.com/repos/appium/appium-mac-driver/git/trees{/sha}","statuses_url":"https://api.github.com/repos/appium/appium-mac-driver/statuses/{sha}","languages_url":"https://api.github.com/repos/appium/appium-mac-driver/languages","stargazers_url":"https://api.github.com/repos/appium/appium-mac-driver/stargazers","contributors_url":"https://api.github.com/repos/appium/appium-mac-driver/contributors","subscribers_url":"https://api.github.com/repos/appium/appium-mac-driver/subscribers","subscription_url":"https://api.github.com/repos/appium/appium-mac-driver/subscription","commits_url":"https://api.github.com/repos/appium/appium-mac-driver/commits{/sha}","git_commits_url":"https://api.github.com/repos/appium/appium-mac-driver/git/commits{/sha}","comments_url":"https://api.github.com/repos/appium/appium-mac-driver/comments{/number}","issue_comment_url":"https://api.github.com/repos/appium/appium-mac-driver/issues/comments{/number}","contents_url":"https://api.github.com/repos/appium/appium-mac-driver/contents/{+path}","compare_url":"https://api.github.com/repos/appium/appium-mac-driver/compare/{base}...{head}","merges_url":"https://api.github.com/repos/appium/appium-mac-driver/merges","archive_url":"https://api.github.com/repos/appium/appium-mac-driver/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/appium/appium-mac-driver/downloads","issues_url":"https://api.github.com/repos/appium/appium-mac-driver/issues{/number}","pulls_url":"https://api.github.com/repos/appium/appium-mac-driver/pulls{/number}","milestones_url":"https://api.github.com/repos/appium/appium-mac-driver/milestones{/number}","notifications_url":"https://api.github.com/repos/appium/appium-mac-driver/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/appium/appium-mac-driver/labels{/name}","releases_url":"https://api.github.com/repos/appium/appium-mac-driver/releases{/id}","deployments_url":"https://api.github.com/repos/appium/appium-mac-driver/deployments","created_at":"2017-03-11T07:44:29Z","updated_at":"2020-01-03T01:29:27Z","pushed_at":"2019-12-30T15:43:53Z","git_url":"git://github.com/appium/appium-mac-driver.git","ssh_url":"git@github.com:appium/appium-mac-driver.git","clone_url":"https://github.com/appium/appium-mac-driver.git","svn_url":"https://github.com/appium/appium-mac-driver","homepage":null,"size":52,"stargazers_count":21,"watchers_count":21,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":4,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":7,"open_issues":4,"watchers":21,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/appium/appium-mac-driver/pulls/42"},"html":{"href":"https://github.com/appium/appium-mac-driver/pull/42"},"issue":{"href":"https://api.github.com/repos/appium/appium-mac-driver/issues/42"},"comments":{"href":"https://api.github.com/repos/appium/appium-mac-driver/issues/42/comments"},"review_comments":{"href":"https://api.github.com/repos/appium/appium-mac-driver/pulls/42/comments"},"review_comment":{"href":"https://api.github.com/repos/appium/appium-mac-driver/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/appium/appium-mac-driver/pulls/42/commits"},"statuses":{"href":"https://api.github.com/repos/appium/appium-mac-driver/statuses/56996146a2ddadac1c58f05b44457ca4ee6d5fd7"}},"author_association":"MEMBER","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":2,"additions":14,"deletions":5,"changed_files":3}}
{"actor":{"display_login":"KazuCocoa"}}