{"action":"closed","issue":{"url":"https://api.github.com/repos/appium/appium/issues/4043","repository_url":"https://api.github.com/repos/appium/appium","labels_url":"https://api.github.com/repos/appium/appium/issues/4043/labels{/name}","comments_url":"https://api.github.com/repos/appium/appium/issues/4043/comments","events_url":"https://api.github.com/repos/appium/appium/issues/4043/events","html_url":"https://github.com/appium/appium/issues/4043","id":48538968,"number":4043,"title":"What could be the reason of 'invalid media type' exception?","user":{"login":"kirillzhukov-cc","id":8931107,"avatar_url":"https://avatars.githubusercontent.com/u/8931107?v=3","gravatar_id":"","url":"https://api.github.com/users/kirillzhukov-cc","html_url":"https://github.com/kirillzhukov-cc","followers_url":"https://api.github.com/users/kirillzhukov-cc/followers","following_url":"https://api.github.com/users/kirillzhukov-cc/following{/other_user}","gists_url":"https://api.github.com/users/kirillzhukov-cc/gists{/gist_id}","starred_url":"https://api.github.com/users/kirillzhukov-cc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kirillzhukov-cc/subscriptions","organizations_url":"https://api.github.com/users/kirillzhukov-cc/orgs","repos_url":"https://api.github.com/users/kirillzhukov-cc/repos","events_url":"https://api.github.com/users/kirillzhukov-cc/events{/privacy}","received_events_url":"https://api.github.com/users/kirillzhukov-cc/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/appium/appium/milestones/17","html_url":"https://github.com/appium/appium/milestones/Bugs","labels_url":"https://api.github.com/repos/appium/appium/milestones/17/labels","id":1034713,"number":17,"title":"Bugs","description":"","creator":{"login":"jlipps","id":605053,"avatar_url":"https://avatars.githubusercontent.com/u/605053?v=3","gravatar_id":"","url":"https://api.github.com/users/jlipps","html_url":"https://github.com/jlipps","followers_url":"https://api.github.com/users/jlipps/followers","following_url":"https://api.github.com/users/jlipps/following{/other_user}","gists_url":"https://api.github.com/users/jlipps/gists{/gist_id}","starred_url":"https://api.github.com/users/jlipps/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jlipps/subscriptions","organizations_url":"https://api.github.com/users/jlipps/orgs","repos_url":"https://api.github.com/users/jlipps/repos","events_url":"https://api.github.com/users/jlipps/events{/privacy}","received_events_url":"https://api.github.com/users/jlipps/received_events","type":"User","site_admin":false},"open_issues":96,"closed_issues":96,"state":"open","created_at":"2015-03-23T17:37:36Z","updated_at":"2016-11-10T22:22:01Z","due_on":null,"closed_at":null},"comments":16,"created_at":"2014-11-12T17:37:32Z","updated_at":"2016-11-10T22:22:01Z","closed_at":"2016-11-10T22:22:01Z","body":"**Server Log:**\n`info: [debug] Proxying command to localhost:8080\ninfo: [debug] Making http request with opts: {\"url\":\"http://localhost:8080/wd/hub/session/7579d069-1709-e313-eb0c-9fe6150ea7b3/element\",\"method\":\"POST\",\"json\":{\"using\":\"xpath\",\"value\":\"//*[contains(text(), 'text')]\"}}\ninfo: [debug] Proxied response received with status 200: {\"value\":{\"ELEMENT\":\":wdc:1415226603727\"},\"status\":0,\"sessionId\":\"7579d069-1709-e313-eb0c-9fe6150ea7b3\"}\ninfo: <-- POST /wd/hub/session/7579d069-1709-e313-eb0c-9fe6150ea7b3/element 200 198.129 ms - 104\ninfo: --> GET /wd/hub/session/7579d069-1709-e313-eb0c-9fe6150ea7b3/element/:wdc:1415226603727/displayed {}\ninfo: [debug] Proxying command to localhost:8080\ninfo: [debug] Making http request with opts: {\"url\":\"http://localhost:8080/wd/hub/session/7579d069-1709-e313-eb0c-9fe6150ea7b3/element/:wdc:1415226603727/displayed\",\"method\":\"GET\"}\ninfo: [debug] Proxied response received with status 500:\nerror: Unexpected error: TypeError: invalid media type\n    at splitType (/Users/kirill/appium/node_modules/express/node_modules/media-typer/index.js:240:11)\n    at Object.parse (/Users/kirill/appium/node_modules/express/node_modules/media-typer/index.js:160:13)\n    at exports.setCharset (/Users/kirill/appium/node_modules/express/lib/utils.js:247:22)\n    at ServerResponse.res.send (/Users/kirill/appium/node_modules/express/lib/response.js:133:32)\n    at /Users/kirill/appium/lib/server/proxy.js:80:11\n    at safely (/Users/kirill/appium/lib/server/helpers.js:306:5)\n    at /Users/kirill/appium/lib/server/proxy.js:77:5\n    at Request._callback (/Users/kirill/appium/lib/devices/common.js:121:5)\n    at Request.self.callback (/Users/kirill/appium/node_modules/request/request.js:121:22)\n    at Request.emit (events.js:98:17) context: [GET /wd/hub/session/7579d069-1709-e313-eb0c-9fe6150ea7b3/element/:wdc:1415226603727/displayed {}]`\n\nI am getting this error randomly when try to check if element is displayed dynamically...\n"}}
{"actor":{"display_login":"jlipps"}}