{"action":"created","issue":{"url":"https://api.github.com/repos/codeclimate/test-reporter/issues/342","repository_url":"https://api.github.com/repos/codeclimate/test-reporter","labels_url":"https://api.github.com/repos/codeclimate/test-reporter/issues/342/labels{/name}","comments_url":"https://api.github.com/repos/codeclimate/test-reporter/issues/342/comments","events_url":"https://api.github.com/repos/codeclimate/test-reporter/issues/342/events","html_url":"https://github.com/codeclimate/test-reporter/issues/342","id":329647736,"node_id":"MDU6SXNzdWUzMjk2NDc3MzY=","number":342,"title":"HTTP 401: You are not authorized for this action","user":{"login":"julianguyen","id":3010728,"node_id":"MDQ6VXNlcjMwMTA3Mjg=","avatar_url":"https://avatars1.githubusercontent.com/u/3010728?v=4","gravatar_id":"","url":"https://api.github.com/users/julianguyen","html_url":"https://github.com/julianguyen","followers_url":"https://api.github.com/users/julianguyen/followers","following_url":"https://api.github.com/users/julianguyen/following{/other_user}","gists_url":"https://api.github.com/users/julianguyen/gists{/gist_id}","starred_url":"https://api.github.com/users/julianguyen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/julianguyen/subscriptions","organizations_url":"https://api.github.com/users/julianguyen/orgs","repos_url":"https://api.github.com/users/julianguyen/repos","events_url":"https://api.github.com/users/julianguyen/events{/privacy}","received_events_url":"https://api.github.com/users/julianguyen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"maxjacobson","id":1421211,"node_id":"MDQ6VXNlcjE0MjEyMTE=","avatar_url":"https://avatars1.githubusercontent.com/u/1421211?v=4","gravatar_id":"","url":"https://api.github.com/users/maxjacobson","html_url":"https://github.com/maxjacobson","followers_url":"https://api.github.com/users/maxjacobson/followers","following_url":"https://api.github.com/users/maxjacobson/following{/other_user}","gists_url":"https://api.github.com/users/maxjacobson/gists{/gist_id}","starred_url":"https://api.github.com/users/maxjacobson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maxjacobson/subscriptions","organizations_url":"https://api.github.com/users/maxjacobson/orgs","repos_url":"https://api.github.com/users/maxjacobson/repos","events_url":"https://api.github.com/users/maxjacobson/events{/privacy}","received_events_url":"https://api.github.com/users/maxjacobson/received_events","type":"User","site_admin":false},"assignees":[{"login":"maxjacobson","id":1421211,"node_id":"MDQ6VXNlcjE0MjEyMTE=","avatar_url":"https://avatars1.githubusercontent.com/u/1421211?v=4","gravatar_id":"","url":"https://api.github.com/users/maxjacobson","html_url":"https://github.com/maxjacobson","followers_url":"https://api.github.com/users/maxjacobson/followers","following_url":"https://api.github.com/users/maxjacobson/following{/other_user}","gists_url":"https://api.github.com/users/maxjacobson/gists{/gist_id}","starred_url":"https://api.github.com/users/maxjacobson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maxjacobson/subscriptions","organizations_url":"https://api.github.com/users/maxjacobson/orgs","repos_url":"https://api.github.com/users/maxjacobson/repos","events_url":"https://api.github.com/users/maxjacobson/events{/privacy}","received_events_url":"https://api.github.com/users/maxjacobson/received_events","type":"User","site_admin":false}],"milestone":null,"comments":6,"created_at":"2018-06-05T22:29:51Z","updated_at":"2018-07-06T16:10:35Z","closed_at":null,"author_association":"NONE","body":"Anyone know where this is coming from? I have the correct test report ID.\r\n\r\n```\r\nRan all test suites.\r\nDone in 37.00s.\r\nError: response from https://api.codeclimate.com/v1/test_reports.\r\nHTTP 401: You are not authorized for this action\r\nUsage:\r\n  cc-test-reporter after-build [flags]\r\n\r\nFlags:\r\n  -s, --batch-size int               batch size for source files (default 500)\r\n  -e, --coverage-endpoint string     endpoint to upload coverage information to (default \"https://api.codeclimate.com/v1/test_reports\")\r\n  -t, --coverage-input-type string   type of input source to use [clover, cobertura, coverage.py, excoveralls, gcov, gocov, jacoco, lcov, simplecov]\r\n      --exit-code int                exit code of the test run\r\n  -r, --id string                    reporter identifier (default \"${TEST_REPORTER_ID}\")\r\n      --insecure                     send coverage insecurely (without HTTPS)\r\n  -p, --prefix string                the root directory where the coverage analysis was performed (default \"/root/hs-b2b-dashboard\")\r\n\r\nGlobal Flags:\r\n  -d, --debug   run in debug mode\r\n\r\nExited with code 255\r\n```\r\n\r\nEDIT: In debug mode I get:\r\n```\r\nDEBU[0000] about to run upload-coverage                 \r\nDEBU[0000] posting request to https://api.codeclimate.com/v1/test_reports \r\nDEBU[0000] {\"data\":{\"type\":\"test_reports\",\"attributes\":{\"ci_branch\":\"set-up-code-climate\",\"ci_build_identifier\":\"363\",\"ci_build_url\":\"363\",\"ci_commit_sha\":\"[hidden]\",\"ci_committed_at\":1528238506,\"ci_service_name\":\"true\",\"git_branch\":\"set-up-code-climate\",\"commit_sha\":\"[hidden]\",\"committed_at\":1528238506,\"run_at\":1528238616,\"covered_percent\":77.05263157894737,\"covered_strength\":0,\"environment\":{\"gem_version\":\"\",\"package_version\":\"\",\"pwd\":\"/root/[hidden]\",\"prefix\":\"/root/[hidden]\",\"rails_root\":\"\",\"reporter_version\":\"0.6.0\",\"simplecov_root\":\"\"},\"line_counts\":{\"missed\":327,\"covered\":1098,\"total\":1425}}},\"meta\":null}\r\n \r\nDEBU[0000] {\"errors\":[{\"detail\":\"You are not authorized for this action\",\"title\":\"Unauthorized\"}]} \r\nError: response from https://api.codeclimate.com/v1/test_reports.\r\nHTTP 401: You are not authorized for this action\r\nUsage:\r\n  cc-test-reporter after-build [flags]\r\n```"},"comment":{"url":"https://api.github.com/repos/codeclimate/test-reporter/issues/comments/403078555","html_url":"https://github.com/codeclimate/test-reporter/issues/342#issuecomment-403078555","issue_url":"https://api.github.com/repos/codeclimate/test-reporter/issues/342","id":403078555,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMzA3ODU1NQ==","user":{"login":"efueger","id":2053833,"node_id":"MDQ6VXNlcjIwNTM4MzM=","avatar_url":"https://avatars3.githubusercontent.com/u/2053833?v=4","gravatar_id":"","url":"https://api.github.com/users/efueger","html_url":"https://github.com/efueger","followers_url":"https://api.github.com/users/efueger/followers","following_url":"https://api.github.com/users/efueger/following{/other_user}","gists_url":"https://api.github.com/users/efueger/gists{/gist_id}","starred_url":"https://api.github.com/users/efueger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/efueger/subscriptions","organizations_url":"https://api.github.com/users/efueger/orgs","repos_url":"https://api.github.com/users/efueger/repos","events_url":"https://api.github.com/users/efueger/events{/privacy}","received_events_url":"https://api.github.com/users/efueger/received_events","type":"User","site_admin":false},"created_at":"2018-07-06T16:10:35Z","updated_at":"2018-07-06T16:10:35Z","author_association":"MEMBER","body":"Thanks @2YY - \r\n\r\nOn **master**, can you:\r\n1. remove the **hard coded** CC_TEST_REPORTER_ID env var lines in your config.yml _(lines 8 and 9)_\r\n2. change the **var name** in your CircleCI Environmental Variable to `CC_TEST_REPORTER_ID`\r\n\r\nLet me know how it goes!"}}
{"actor":{"display_login":"efueger"}}