{"action":"created","issue":{"url":"https://api.github.com/repos/gogs/gogs/issues/5305","repository_url":"https://api.github.com/repos/gogs/gogs","labels_url":"https://api.github.com/repos/gogs/gogs/issues/5305/labels{/name}","comments_url":"https://api.github.com/repos/gogs/gogs/issues/5305/comments","events_url":"https://api.github.com/repos/gogs/gogs/issues/5305/events","html_url":"https://github.com/gogs/gogs/issues/5305","id":334585901,"node_id":"MDU6SXNzdWUzMzQ1ODU5MDE=","number":5305,"title":"Not able to go get a repository","user":{"login":"retgits","id":8568280,"node_id":"MDQ6VXNlcjg1NjgyODA=","avatar_url":"https://avatars1.githubusercontent.com/u/8568280?v=4","gravatar_id":"","url":"https://api.github.com/users/retgits","html_url":"https://github.com/retgits","followers_url":"https://api.github.com/users/retgits/followers","following_url":"https://api.github.com/users/retgits/following{/other_user}","gists_url":"https://api.github.com/users/retgits/gists{/gist_id}","starred_url":"https://api.github.com/users/retgits/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/retgits/subscriptions","organizations_url":"https://api.github.com/users/retgits/orgs","repos_url":"https://api.github.com/users/retgits/repos","events_url":"https://api.github.com/users/retgits/events{/privacy}","received_events_url":"https://api.github.com/users/retgits/received_events","type":"User","site_admin":false},"labels":[{"id":80068182,"node_id":"MDU6TGFiZWw4MDA2ODE4Mg==","url":"https://api.github.com/repos/gogs/gogs/labels/kind/bug","name":"kind/bug","color":"d73a4a","default":false},{"id":162359629,"node_id":"MDU6TGFiZWwxNjIzNTk2Mjk=","url":"https://api.github.com/repos/gogs/gogs/labels/status/needs%20feedback","name":"status/needs feedback","color":"fbca04","default":false},{"id":156137697,"node_id":"MDU6TGFiZWwxNTYxMzc2OTc=","url":"https://api.github.com/repos/gogs/gogs/labels/status/needs%20reproduce","name":"status/needs reproduce","color":"eb6420","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-06-21T17:22:15Z","updated_at":"2018-07-18T11:51:56Z","closed_at":null,"author_association":"NONE","body":"- Gogs version (or commit ref): `0.11.56.0613`\r\n- Git version: `git version 2.15.2`\r\n- Operating system: `macOS 10.13.5`\r\n- Database (use `[x]`):\r\n  - [ ] PostgreSQL\r\n  - [ ] MySQL\r\n  - [ ] MSSQL\r\n  - [X] SQLite\r\n- Can you reproduce the bug at https://try.gogs.io:\r\n  - [X] Yes (for example using https://try.gogs.io/AutuanLiu/golang?go-get=1)\r\n  - [ ] No\r\n  - [ ] Not relevant\r\n\r\n## Description\r\nExecuting `go get` on a repository hosted by gogs fails with an error\r\n```\r\nFetching https://myserver:3000/myUser/myProject?go-get=1\r\nParsing meta tags from https://myserver:3000/myUser/myProject?go-get=1 (status code 200)\r\npackage myserver:3000/myUser/myProject: unrecognized import path \"myserver:3000/myUser/myProject\" (parse https://myserver:3000/myUser/myProject?go-get=1: no go-import meta tags (meta tag myserver/myUser/myProject did not match import path myserver:3000/myUser/myProject))\r\n```\r\n\r\nIt could be that because my gogs server uses a different port that the template used to generate the go-import meta tags don't properly get that port.\r\n\r\nThe other thing I noticed is that when I browse to the url `https://myserver:3000/myUser/myProject?go-get=1` it returns the entire HTML code in the body tag as opposed to it being the actual response:\r\n```\r\n<html class=\"\"><head></head><body data-gr-c-s-loaded=\"true\"><pre style=\"word-wrap: break-word; white-space: pre-wrap;\">&lt;!doctype html&gt;\r\n&lt;html&gt;\r\n\t&lt;head&gt;\r\n\t\t&lt;meta name=\"go-import\" content=\"myserver/myUser/myProject git https://myserver:3000/myUser/myProject.git\"&gt;\r\n\t\t&lt;meta name=\"go-source\" content=\"myserver/myUser/myProject _ https://myserver:3000/myUser/myProject/src/master{/dir} https://myserver:3000/myUser/myProject/src/master{/dir}/{file}#L{line}\"&gt;\r\n\t&lt;/head&gt;\r\n\t&lt;body&gt;\r\n\t\tgo get myserver/myUser/myProject\r\n\t&lt;/body&gt;\r\n&lt;/html&gt;\r\n</pre></body></html>\r\n```"},"comment":{"url":"https://api.github.com/repos/gogs/gogs/issues/comments/405904359","html_url":"https://github.com/gogs/gogs/issues/5305#issuecomment-405904359","issue_url":"https://api.github.com/repos/gogs/gogs/issues/5305","id":405904359,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNTkwNDM1OQ==","user":{"login":"Unknwon","id":2946214,"node_id":"MDQ6VXNlcjI5NDYyMTQ=","avatar_url":"https://avatars3.githubusercontent.com/u/2946214?v=4","gravatar_id":"","url":"https://api.github.com/users/Unknwon","html_url":"https://github.com/Unknwon","followers_url":"https://api.github.com/users/Unknwon/followers","following_url":"https://api.github.com/users/Unknwon/following{/other_user}","gists_url":"https://api.github.com/users/Unknwon/gists{/gist_id}","starred_url":"https://api.github.com/users/Unknwon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Unknwon/subscriptions","organizations_url":"https://api.github.com/users/Unknwon/orgs","repos_url":"https://api.github.com/users/Unknwon/repos","events_url":"https://api.github.com/users/Unknwon/events{/privacy}","received_events_url":"https://api.github.com/users/Unknwon/received_events","type":"User","site_admin":false},"created_at":"2018-07-18T11:51:56Z","updated_at":"2018-07-18T11:51:56Z","author_association":"MEMBER","body":"Are you sure? Which browser are you using?\r\n\r\nThis is what I got:\r\n\r\n![image](https://user-images.githubusercontent.com/2946214/42879654-fe12bd12-8ac3-11e8-9b2d-d9276c8994cd.png)\r\n"}}
{"actor":{"display_login":"Unknwon"}}