Skip to content

Instantly share code, notes, and snippets.

@BanzaiMan
Last active January 13, 2016 18:29
Show Gist options
  • Save BanzaiMan/81d2e63d21dd704993d9 to your computer and use it in GitHub Desktop.
Save BanzaiMan/81d2e63d21dd704993d9 to your computer and use it in GitHub Desktop.
[
{
"url": "https://api.github.com/repos/travis-ci/travis-api/issues/comments/75100791",
"html_url": "https://github.com/travis-ci/travis-api/issues/162#issuecomment-75100791",
"issue_url": "https://api.github.com/repos/travis-ci/travis-api/issues/162",
"id": 75100791,
"user": {
"login": "BanzaiMan",
"id": 25666,
"avatar_url": "https://avatars.githubusercontent.com/u/25666?v=3",
"gravatar_id": "",
"url": "https://api.github.com/users/BanzaiMan",
"html_url": "https://github.com/BanzaiMan",
"followers_url": "https://api.github.com/users/BanzaiMan/followers",
"following_url": "https://api.github.com/users/BanzaiMan/following{/other_user}",
"gists_url": "https://api.github.com/users/BanzaiMan/gists{/gist_id}",
"starred_url": "https://api.github.com/users/BanzaiMan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/BanzaiMan/subscriptions",
"organizations_url": "https://api.github.com/users/BanzaiMan/orgs",
"repos_url": "https://api.github.com/users/BanzaiMan/repos",
"events_url": "https://api.github.com/users/BanzaiMan/events{/privacy}",
"received_events_url": "https://api.github.com/users/BanzaiMan/received_events",
"type": "User",
"site_admin": false
},
"created_at": "2015-02-19T17:51:06Z",
"updated_at": "2015-02-19T17:51:06Z",
"body": "Logs may not have been processed yet. How log ago did the job finish? If it's an old one, we should take a look. Please indicate which job, or email [email protected] please."
},
{
"url": "https://api.github.com/repos/travis-ci/travis-api/issues/comments/75213203",
"html_url": "https://github.com/travis-ci/travis-api/issues/162#issuecomment-75213203",
"issue_url": "https://api.github.com/repos/travis-ci/travis-api/issues/162",
"id": 75213203,
"user": {
"login": "jhermsmeier",
"id": 244907,
"avatar_url": "https://avatars.githubusercontent.com/u/244907?v=3",
"gravatar_id": "",
"url": "https://api.github.com/users/jhermsmeier",
"html_url": "https://github.com/jhermsmeier",
"followers_url": "https://api.github.com/users/jhermsmeier/followers",
"following_url": "https://api.github.com/users/jhermsmeier/following{/other_user}",
"gists_url": "https://api.github.com/users/jhermsmeier/gists{/gist_id}",
"starred_url": "https://api.github.com/users/jhermsmeier/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jhermsmeier/subscriptions",
"organizations_url": "https://api.github.com/users/jhermsmeier/orgs",
"repos_url": "https://api.github.com/users/jhermsmeier/repos",
"events_url": "https://api.github.com/users/jhermsmeier/events{/privacy}",
"received_events_url": "https://api.github.com/users/jhermsmeier/received_events",
"type": "User",
"site_admin": false
},
"created_at": "2015-02-20T09:51:02Z",
"updated_at": "2015-02-20T09:51:02Z",
"body": "I'm basically walking my way back in time, starting with the most recent, and then paging through history.\r\nThe first (most recent) job does return a log, but all requests after that (for older ones) don't:\r\n\r\nFirst job:\r\n```\r\nGET https://api.travis-ci.com/logs/13918637\r\n```\r\n```js\r\n{\r\n id: 13918637,\r\n job_id: 13918673,\r\n type: 'Log',\r\n body: 'Using worker: worker-linux-docker-......\r\n}\r\n```\r\nSecond:\r\n```\r\nGET https://api.travis-ci.com/logs/13877029\r\n```\r\n```js\r\n{ id: 13877029, job_id: 13877065, type: 'Log', body: '' }\r\n```\r\nFurther back in history, still no logs:\r\n```\r\nGET https://api.travis-ci.com/logs/12840681\r\n```\r\n```js\r\n{ id: 12840681, job_id: 12840717, type: 'Log', body: '' }\r\n```\r\n"
},
{
"url": "https://api.github.com/repos/travis-ci/travis-api/issues/comments/75398884",
"html_url": "https://github.com/travis-ci/travis-api/issues/162#issuecomment-75398884",
"issue_url": "https://api.github.com/repos/travis-ci/travis-api/issues/162",
"id": 75398884,
"user": {
"login": "joshk",
"id": 8701,
"avatar_url": "https://avatars.githubusercontent.com/u/8701?v=3",
"gravatar_id": "",
"url": "https://api.github.com/users/joshk",
"html_url": "https://github.com/joshk",
"followers_url": "https://api.github.com/users/joshk/followers",
"following_url": "https://api.github.com/users/joshk/following{/other_user}",
"gists_url": "https://api.github.com/users/joshk/gists{/gist_id}",
"starred_url": "https://api.github.com/users/joshk/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/joshk/subscriptions",
"organizations_url": "https://api.github.com/users/joshk/orgs",
"repos_url": "https://api.github.com/users/joshk/repos",
"events_url": "https://api.github.com/users/joshk/events{/privacy}",
"received_events_url": "https://api.github.com/users/joshk/received_events",
"type": "User",
"site_admin": false
},
"created_at": "2015-02-21T23:20:00Z",
"updated_at": "2015-02-21T23:20:00Z",
"body": "Can you check the `Location` response headers returned as it likely has the location where we archive the logs too."
},
{
"url": "https://api.github.com/repos/travis-ci/travis-api/issues/comments/75400058",
"html_url": "https://github.com/travis-ci/travis-api/issues/162#issuecomment-75400058",
"issue_url": "https://api.github.com/repos/travis-ci/travis-api/issues/162",
"id": 75400058,
"user": {
"login": "jhermsmeier",
"id": 244907,
"avatar_url": "https://avatars.githubusercontent.com/u/244907?v=3",
"gravatar_id": "",
"url": "https://api.github.com/users/jhermsmeier",
"html_url": "https://github.com/jhermsmeier",
"followers_url": "https://api.github.com/users/jhermsmeier/followers",
"following_url": "https://api.github.com/users/jhermsmeier/following{/other_user}",
"gists_url": "https://api.github.com/users/jhermsmeier/gists{/gist_id}",
"starred_url": "https://api.github.com/users/jhermsmeier/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jhermsmeier/subscriptions",
"organizations_url": "https://api.github.com/users/jhermsmeier/orgs",
"repos_url": "https://api.github.com/users/jhermsmeier/repos",
"events_url": "https://api.github.com/users/jhermsmeier/events{/privacy}",
"received_events_url": "https://api.github.com/users/jhermsmeier/received_events",
"type": "User",
"site_admin": false
},
"created_at": "2015-02-21T23:47:19Z",
"updated_at": "2015-02-21T23:47:19Z",
"body": "Yup, won't get around to doing that 'til monday, though."
},
{
"url": "https://api.github.com/repos/travis-ci/travis-api/issues/comments/75520798",
"html_url": "https://github.com/travis-ci/travis-api/issues/162#issuecomment-75520798",
"issue_url": "https://api.github.com/repos/travis-ci/travis-api/issues/162",
"id": 75520798,
"user": {
"login": "jhermsmeier",
"id": 244907,
"avatar_url": "https://avatars.githubusercontent.com/u/244907?v=3",
"gravatar_id": "",
"url": "https://api.github.com/users/jhermsmeier",
"html_url": "https://github.com/jhermsmeier",
"followers_url": "https://api.github.com/users/jhermsmeier/followers",
"following_url": "https://api.github.com/users/jhermsmeier/following{/other_user}",
"gists_url": "https://api.github.com/users/jhermsmeier/gists{/gist_id}",
"starred_url": "https://api.github.com/users/jhermsmeier/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jhermsmeier/subscriptions",
"organizations_url": "https://api.github.com/users/jhermsmeier/orgs",
"repos_url": "https://api.github.com/users/jhermsmeier/repos",
"events_url": "https://api.github.com/users/jhermsmeier/events{/privacy}",
"received_events_url": "https://api.github.com/users/jhermsmeier/received_events",
"type": "User",
"site_admin": false
},
"created_at": "2015-02-23T10:41:17Z",
"updated_at": "2015-02-23T10:41:17Z",
"body": "No `Location` header there...\r\nResponse headers:\r\n```js\r\n{\r\n server: 'Cowboy',\r\n connection: 'close',\r\n date: 'Mon, 23 Feb 2015 10:30:15 GMT',\r\n status: '200 OK',\r\n 'content-type': 'application/json;charset=utf-8',\r\n 'access-control-allow-origin': '*',\r\n 'access-control-allow-credentials': 'true',\r\n 'access-control-expose-headers': 'Content-Type, Cache-Control, Expires, Etag, Last-Modified',\r\n 'strict-transport-security': 'max-age=31536000',\r\n 'x-endpoint': 'Travis::Api::App::Endpoint::Logs',\r\n 'x-pattern': '/:id',\r\n 'x-oauth-scopes': 'public,private',\r\n 'x-accepted-oauth-scopes': 'private',\r\n vary: 'Accept,Authorization,Accept-Encoding',\r\n 'cache-control': 'no-cache',\r\n 'content-length': '64',\r\n via: '1.1 vegur'\r\n}\r\n```\r\nResponse data:\r\n```js\r\n{\r\n id: 13937680,\r\n job_id: 13937716,\r\n type: 'Log',\r\n body: '',\r\n build_id: 9632163,\r\n commit_id: 12524334\r\n}\r\n```"
},
{
"url": "https://api.github.com/repos/travis-ci/travis-api/issues/comments/75904499",
"html_url": "https://github.com/travis-ci/travis-api/issues/162#issuecomment-75904499",
"issue_url": "https://api.github.com/repos/travis-ci/travis-api/issues/162",
"id": 75904499,
"user": {
"login": "joshk",
"id": 8701,
"avatar_url": "https://avatars.githubusercontent.com/u/8701?v=3",
"gravatar_id": "",
"url": "https://api.github.com/users/joshk",
"html_url": "https://github.com/joshk",
"followers_url": "https://api.github.com/users/joshk/followers",
"following_url": "https://api.github.com/users/joshk/following{/other_user}",
"gists_url": "https://api.github.com/users/joshk/gists{/gist_id}",
"starred_url": "https://api.github.com/users/joshk/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/joshk/subscriptions",
"organizations_url": "https://api.github.com/users/joshk/orgs",
"repos_url": "https://api.github.com/users/joshk/repos",
"events_url": "https://api.github.com/users/joshk/events{/privacy}",
"received_events_url": "https://api.github.com/users/joshk/received_events",
"type": "User",
"site_admin": false
},
"created_at": "2015-02-25T04:40:00Z",
"updated_at": "2015-02-25T04:40:00Z",
"body": "Could you try the URL `https://api.travis-ci.com/job/13877065/log` and see if the headers are different?"
},
{
"url": "https://api.github.com/repos/travis-ci/travis-api/issues/comments/76154440",
"html_url": "https://github.com/travis-ci/travis-api/issues/162#issuecomment-76154440",
"issue_url": "https://api.github.com/repos/travis-ci/travis-api/issues/162",
"id": 76154440,
"user": {
"login": "jhermsmeier",
"id": 244907,
"avatar_url": "https://avatars.githubusercontent.com/u/244907?v=3",
"gravatar_id": "",
"url": "https://api.github.com/users/jhermsmeier",
"html_url": "https://github.com/jhermsmeier",
"followers_url": "https://api.github.com/users/jhermsmeier/followers",
"following_url": "https://api.github.com/users/jhermsmeier/following{/other_user}",
"gists_url": "https://api.github.com/users/jhermsmeier/gists{/gist_id}",
"starred_url": "https://api.github.com/users/jhermsmeier/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jhermsmeier/subscriptions",
"organizations_url": "https://api.github.com/users/jhermsmeier/orgs",
"repos_url": "https://api.github.com/users/jhermsmeier/repos",
"events_url": "https://api.github.com/users/jhermsmeier/events{/privacy}",
"received_events_url": "https://api.github.com/users/jhermsmeier/received_events",
"type": "User",
"site_admin": false
},
"created_at": "2015-02-26T10:23:54Z",
"updated_at": "2015-02-26T10:23:54Z",
"body": "`https://api.travis-ci.com/job/13877065/log` is a **404**, `https://api.travis-ci.com/jobs/13877065/log` works & returns what `https://api.travis-ci.com/logs/:log_id` is supposed to return (according to the API docs). Will have to test if it returns a log body for every build I'm fetching..."
},
{
"url": "https://api.github.com/repos/travis-ci/travis-api/issues/comments/140552623",
"html_url": "https://github.com/travis-ci/travis-api/issues/162#issuecomment-140552623",
"issue_url": "https://api.github.com/repos/travis-ci/travis-api/issues/162",
"id": 140552623,
"user": {
"login": "brave-warrior",
"id": 4306809,
"avatar_url": "https://avatars.githubusercontent.com/u/4306809?v=3",
"gravatar_id": "",
"url": "https://api.github.com/users/brave-warrior",
"html_url": "https://github.com/brave-warrior",
"followers_url": "https://api.github.com/users/brave-warrior/followers",
"following_url": "https://api.github.com/users/brave-warrior/following{/other_user}",
"gists_url": "https://api.github.com/users/brave-warrior/gists{/gist_id}",
"starred_url": "https://api.github.com/users/brave-warrior/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/brave-warrior/subscriptions",
"organizations_url": "https://api.github.com/users/brave-warrior/orgs",
"repos_url": "https://api.github.com/users/brave-warrior/repos",
"events_url": "https://api.github.com/users/brave-warrior/events{/privacy}",
"received_events_url": "https://api.github.com/users/brave-warrior/received_events",
"type": "User",
"site_admin": false
},
"created_at": "2015-09-15T21:29:41Z",
"updated_at": "2015-09-15T21:29:41Z",
"body": "I found the following: in order to get the log of the job using the call `https://api.travis-ci.com/jobs/{job_id}/log` do not send the header `Accept` in request, because the response will be returned in raw (plain text) format, not in json."
},
{
"url": "https://api.github.com/repos/travis-ci/travis-api/issues/comments/140554476",
"html_url": "https://github.com/travis-ci/travis-api/issues/162#issuecomment-140554476",
"issue_url": "https://api.github.com/repos/travis-ci/travis-api/issues/162",
"id": 140554476,
"user": {
"login": "brave-warrior",
"id": 4306809,
"avatar_url": "https://avatars.githubusercontent.com/u/4306809?v=3",
"gravatar_id": "",
"url": "https://api.github.com/users/brave-warrior",
"html_url": "https://github.com/brave-warrior",
"followers_url": "https://api.github.com/users/brave-warrior/followers",
"following_url": "https://api.github.com/users/brave-warrior/following{/other_user}",
"gists_url": "https://api.github.com/users/brave-warrior/gists{/gist_id}",
"starred_url": "https://api.github.com/users/brave-warrior/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/brave-warrior/subscriptions",
"organizations_url": "https://api.github.com/users/brave-warrior/orgs",
"repos_url": "https://api.github.com/users/brave-warrior/repos",
"events_url": "https://api.github.com/users/brave-warrior/events{/privacy}",
"received_events_url": "https://api.github.com/users/brave-warrior/received_events",
"type": "User",
"site_admin": false
},
"created_at": "2015-09-15T21:38:16Z",
"updated_at": "2015-09-15T21:38:16Z",
"body": "However, there is no such call in [API documentation](http://docs.travis-ci.com/api/). So I guess it's better not to use it."
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment