{"action":"created","issue":{"url":"https://api.github.com/repos/mvp/uhubctl/issues/117","repository_url":"https://api.github.com/repos/mvp/uhubctl","labels_url":"https://api.github.com/repos/mvp/uhubctl/issues/117/labels{/name}","comments_url":"https://api.github.com/repos/mvp/uhubctl/issues/117/comments","events_url":"https://api.github.com/repos/mvp/uhubctl/issues/117/events","html_url":"https://github.com/mvp/uhubctl/issues/117","id":365246564,"node_id":"MDU6SXNzdWUzNjUyNDY1NjQ=","number":117,"title":"uhubctl requires sudo for the first run","user":{"login":"ptsneves","id":1478220,"node_id":"MDQ6VXNlcjE0NzgyMjA=","avatar_url":"https://avatars3.githubusercontent.com/u/1478220?v=4","gravatar_id":"","url":"https://api.github.com/users/ptsneves","html_url":"https://github.com/ptsneves","followers_url":"https://api.github.com/users/ptsneves/followers","following_url":"https://api.github.com/users/ptsneves/following{/other_user}","gists_url":"https://api.github.com/users/ptsneves/gists{/gist_id}","starred_url":"https://api.github.com/users/ptsneves/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ptsneves/subscriptions","organizations_url":"https://api.github.com/users/ptsneves/orgs","repos_url":"https://api.github.com/users/ptsneves/repos","events_url":"https://api.github.com/users/ptsneves/events{/privacy}","received_events_url":"https://api.github.com/users/ptsneves/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-09-30T18:05:09Z","updated_at":"2018-09-30T21:02:55Z","closed_at":"2018-09-30T21:02:55Z","author_association":"NONE","body":"I was having some difficulties pinning down a problem where when I connected my Amazon Basics 7 port-hub the ports switching was not working correctly with uhubctl. Instead of giving an error, uhubctl, just finishes and reports that the port is off when in fact it is not.\r\n\r\nIt came down to using sudo or not. I checked that the reporting is the same with sudo and without with pexpect just to confirm.\r\n\r\nI am using the latest master a9474fe12fe5f951c55dc10fd5cf5b770ba61a1d. I am also using a udev rule that half works, because with the udev rule i do not see the error of uhubctl complaining about permissions. Even so, the uhubctl incorrectly reports success.\r\n\r\nThe udev is very simple\r\nSUBSYSTEMS==\"usb\", ATTR{idVendor}==\"2109\", ATTR{idProduct}==\"2811\", MODE=\"0666\"\r\n\r\nI guess there must be some error code which is not being correctly checked but I do not have the knowledge to investigate this. If you give me a tip I can investigate it myself.\r\n\r\nAlso consider changing the help message to be explicit that the idVendor and idProduct can vary with whichever hub the user is using, and he should correct it for his case.\r\n\r\nThanks a lot for the work"},"comment":{"url":"https://api.github.com/repos/mvp/uhubctl/issues/comments/425751841","html_url":"https://github.com/mvp/uhubctl/issues/117#issuecomment-425751841","issue_url":"https://api.github.com/repos/mvp/uhubctl/issues/117","id":425751841,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNTc1MTg0MQ==","user":{"login":"ptsneves","id":1478220,"node_id":"MDQ6VXNlcjE0NzgyMjA=","avatar_url":"https://avatars3.githubusercontent.com/u/1478220?v=4","gravatar_id":"","url":"https://api.github.com/users/ptsneves","html_url":"https://github.com/ptsneves","followers_url":"https://api.github.com/users/ptsneves/followers","following_url":"https://api.github.com/users/ptsneves/following{/other_user}","gists_url":"https://api.github.com/users/ptsneves/gists{/gist_id}","starred_url":"https://api.github.com/users/ptsneves/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ptsneves/subscriptions","organizations_url":"https://api.github.com/users/ptsneves/orgs","repos_url":"https://api.github.com/users/ptsneves/repos","events_url":"https://api.github.com/users/ptsneves/events{/privacy}","received_events_url":"https://api.github.com/users/ptsneves/received_events","type":"User","site_admin":false},"created_at":"2018-09-30T21:02:55Z","updated_at":"2018-09-30T21:02:55Z","author_association":"NONE","body":"Ouch your are right!\r\nThanks a lot for the hint and fast answer"}}
{"actor":{"display_login":"ptsneves"}}