{"action":"closed","issue":{"url":"https://api.github.com/repos/tststs/atom-ternjs/issues/142","labels_url":"https://api.github.com/repos/tststs/atom-ternjs/issues/142/labels{/name}","comments_url":"https://api.github.com/repos/tststs/atom-ternjs/issues/142/comments","events_url":"https://api.github.com/repos/tststs/atom-ternjs/issues/142/events","html_url":"https://github.com/tststs/atom-ternjs/issues/142","id":110875709,"number":142,"title":"atom-ternjs switches port it sends requests to after some time","user":{"login":"senordev","id":1820187,"avatar_url":"https://avatars.githubusercontent.com/u/1820187?v=3","gravatar_id":"","url":"https://api.github.com/users/senordev","html_url":"https://github.com/senordev","followers_url":"https://api.github.com/users/senordev/followers","following_url":"https://api.github.com/users/senordev/following{/other_user}","gists_url":"https://api.github.com/users/senordev/gists{/gist_id}","starred_url":"https://api.github.com/users/senordev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/senordev/subscriptions","organizations_url":"https://api.github.com/users/senordev/orgs","repos_url":"https://api.github.com/users/senordev/repos","events_url":"https://api.github.com/users/senordev/events{/privacy}","received_events_url":"https://api.github.com/users/senordev/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-10-11T18:33:17Z","updated_at":"2015-12-11T13:57:36Z","closed_at":"2015-12-11T13:57:36Z","body":"For some reason the plugin decides to switch the port that it polls after some time. Tern is still running and accepting connections on the initial port. I have verified by making manual requests using cURL.\r\nInitial port and successful request:\r\n<img width=\"859\" alt=\"screen shot 2015-10-11 at 1 28 18 pm\" src=\"https://cloud.githubusercontent.com/assets/1820187/10418281/830e76fc-701c-11e5-914b-0a13dadc2300.png\">\r\n\r\nNew port and unsuccessful request:\r\n<img width=\"859\" alt=\"screen shot 2015-10-11 at 1 28 15 pm\" src=\"https://cloud.githubusercontent.com/assets/1820187/10418283/91caf242-701c-11e5-8439-bbfa152fdb69.png\">\r\n\r\nI'm able to reproduce this issue with only one specific file I'm editing, a nodejs file.\r\n\r\nThe problem disappears when commenting out or removing the require statements at the top of the file."}}