{"action":"created","issue":{"url":"https://api.github.com/repos/minishift/minishift/issues/2625","repository_url":"https://api.github.com/repos/minishift/minishift","labels_url":"https://api.github.com/repos/minishift/minishift/issues/2625/labels{/name}","comments_url":"https://api.github.com/repos/minishift/minishift/issues/2625/comments","events_url":"https://api.github.com/repos/minishift/minishift/issues/2625/events","html_url":"https://github.com/minishift/minishift/issues/2625","id":343765019,"node_id":"MDU6SXNzdWUzNDM3NjUwMTk=","number":2625,"title":"minishift can not access api.github.com","user":{"login":"vertexvaar","id":5594393,"node_id":"MDQ6VXNlcjU1OTQzOTM=","avatar_url":"https://avatars1.githubusercontent.com/u/5594393?v=4","gravatar_id":"","url":"https://api.github.com/users/vertexvaar","html_url":"https://github.com/vertexvaar","followers_url":"https://api.github.com/users/vertexvaar/followers","following_url":"https://api.github.com/users/vertexvaar/following{/other_user}","gists_url":"https://api.github.com/users/vertexvaar/gists{/gist_id}","starred_url":"https://api.github.com/users/vertexvaar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vertexvaar/subscriptions","organizations_url":"https://api.github.com/users/vertexvaar/orgs","repos_url":"https://api.github.com/users/vertexvaar/repos","events_url":"https://api.github.com/users/vertexvaar/events{/privacy}","received_events_url":"https://api.github.com/users/vertexvaar/received_events","type":"User","site_admin":false},"labels":[{"id":403874607,"node_id":"MDU6TGFiZWw0MDM4NzQ2MDc=","url":"https://api.github.com/repos/minishift/minishift/labels/kind/bug","name":"kind/bug","color":"84b6eb","default":false},{"id":503456382,"node_id":"MDU6TGFiZWw1MDM0NTYzODI=","url":"https://api.github.com/repos/minishift/minishift/labels/priority/major","name":"priority/major","color":"e99695","default":false},{"id":520000584,"node_id":"MDU6TGFiZWw1MjAwMDA1ODQ=","url":"https://api.github.com/repos/minishift/minishift/labels/status/needs-info","name":"status/needs-info","color":"0052cc","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2018-07-23T19:30:27Z","updated_at":"2018-07-24T08:17:47Z","closed_at":null,"author_association":"NONE","body":"### General information\r\n\r\n  * Minishift version: minishift v1.21.0+a8c8b37\r\n  * OS: Linux VerteXUbun2 4.15.0-23-generic #25-Ubuntu SMP Wed May 23 18:02:16 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux\r\n  * Hypervisor: VirtualBox\r\n\r\n\r\n### Steps to reproduce\r\n\r\n  1. Donwload minishift from releases page\r\n  2. copy minshift to ~/.local/bin (which is in $PATH)\r\n  3. run `minishift openshift version list`\r\n\r\n### Expected\r\n\r\nI expect a list of versions\r\n\r\n### Actual\r\n\r\ni get\r\n> Error while trying to get list of available Origin versions: GET https://api.github.com/repos/openshift/origin/releases: 401 Bad credentials []\r\n\r\n### Logs\r\n\r\n```\r\n~$ minishift -v5 openshift version list\r\n-- minishift version: v1.21.0+a8c8b37\r\nError while trying to get list of available Origin versions: GET https://api.github.com/repos/openshift/origin/releases: 401 Bad credentials []\r\n```\r\n### Info\r\n\r\nI can not reproduce this if i encapsulate minishift in a docker container and it works on any other machine. minishift must use some environment variable or other information source from my local machine, which is passed to github as authorization header or something like that. I tried to set GH_TOKEN to a valid token but it didn't change anything (See #3564).\r\nI can successfully curl, wget and open the URL in my Browser with an authorized session and incognito tab."},"comment":{"url":"https://api.github.com/repos/minishift/minishift/issues/comments/407322237","html_url":"https://github.com/minishift/minishift/issues/2625#issuecomment-407322237","issue_url":"https://api.github.com/repos/minishift/minishift/issues/2625","id":407322237,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNzMyMjIzNw==","user":{"login":"gbraad","id":1894,"node_id":"MDQ6VXNlcjE4OTQ=","avatar_url":"https://avatars0.githubusercontent.com/u/1894?v=4","gravatar_id":"","url":"https://api.github.com/users/gbraad","html_url":"https://github.com/gbraad","followers_url":"https://api.github.com/users/gbraad/followers","following_url":"https://api.github.com/users/gbraad/following{/other_user}","gists_url":"https://api.github.com/users/gbraad/gists{/gist_id}","starred_url":"https://api.github.com/users/gbraad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gbraad/subscriptions","organizations_url":"https://api.github.com/users/gbraad/orgs","repos_url":"https://api.github.com/users/gbraad/repos","events_url":"https://api.github.com/users/gbraad/events{/privacy}","received_events_url":"https://api.github.com/users/gbraad/received_events","type":"User","site_admin":false},"created_at":"2018-07-24T08:17:47Z","updated_at":"2018-07-24T08:17:47Z","author_association":"MEMBER","body":"the same goes for the `HOMEBREW_` one, as in the github.go file we do: \r\n\r\nhttps://github.com/minishift/minishift/blob/dfccef22f5e6abcaae9b6b842486c3b4fee8945e/pkg/util/github/github.go#L82"}}
{"actor":{"display_login":"gbraad"}}