{"action":"created","issue":{"url":"https://api.github.com/repos/thundra-io/thundra-lambda-agent-go/issues/7","repository_url":"https://api.github.com/repos/thundra-io/thundra-lambda-agent-go","labels_url":"https://api.github.com/repos/thundra-io/thundra-lambda-agent-go/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/thundra-io/thundra-lambda-agent-go/issues/7/comments","events_url":"https://api.github.com/repos/thundra-io/thundra-lambda-agent-go/issues/7/events","html_url":"https://github.com/thundra-io/thundra-lambda-agent-go/issues/7","id":308287041,"number":7,"title":"Go agent doesn't read the environment variable in Lambda","user":{"login":"retgits","id":8568280,"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":840175886,"url":"https://api.github.com/repos/thundra-io/thundra-lambda-agent-go/labels/bug","name":"bug","color":"d73a4a","default":true}],"state":"open","locked":false,"assignee":{"login":"efemedgy","id":8254052,"avatar_url":"https://avatars1.githubusercontent.com/u/8254052?v=4","gravatar_id":"","url":"https://api.github.com/users/efemedgy","html_url":"https://github.com/efemedgy","followers_url":"https://api.github.com/users/efemedgy/followers","following_url":"https://api.github.com/users/efemedgy/following{/other_user}","gists_url":"https://api.github.com/users/efemedgy/gists{/gist_id}","starred_url":"https://api.github.com/users/efemedgy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/efemedgy/subscriptions","organizations_url":"https://api.github.com/users/efemedgy/orgs","repos_url":"https://api.github.com/users/efemedgy/repos","events_url":"https://api.github.com/users/efemedgy/events{/privacy}","received_events_url":"https://api.github.com/users/efemedgy/received_events","type":"User","site_admin":false},"assignees":[{"login":"efemedgy","id":8254052,"avatar_url":"https://avatars1.githubusercontent.com/u/8254052?v=4","gravatar_id":"","url":"https://api.github.com/users/efemedgy","html_url":"https://github.com/efemedgy","followers_url":"https://api.github.com/users/efemedgy/followers","following_url":"https://api.github.com/users/efemedgy/following{/other_user}","gists_url":"https://api.github.com/users/efemedgy/gists{/gist_id}","starred_url":"https://api.github.com/users/efemedgy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/efemedgy/subscriptions","organizations_url":"https://api.github.com/users/efemedgy/orgs","repos_url":"https://api.github.com/users/efemedgy/repos","events_url":"https://api.github.com/users/efemedgy/events{/privacy}","received_events_url":"https://api.github.com/users/efemedgy/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2018-03-24T18:28:40Z","updated_at":"2018-03-24T19:03:04Z","closed_at":null,"author_association":"NONE","body":"As suggested creating an issue here. \r\n\r\nWhen I followed the instructions in the docs on [Configuration](https://docs.thundra.io/docs/configuration) and only supply the environment variable, I got an error like below. When I hardcoded the API key, it worked perfectly\r\n\r\n```\r\nresponse Body:\r\n{\r\n  \"timestamp\": 1521857820679,\r\n  \"status\": 401,\r\n  \"error\": \"Unauthorized\",\r\n  \"message\": \"No API key provided\",\r\n  \"path\": \"/api/monitor-datas\"\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/thundra-io/thundra-lambda-agent-go/issues/comments/375916881","html_url":"https://github.com/thundra-io/thundra-lambda-agent-go/issues/7#issuecomment-375916881","issue_url":"https://api.github.com/repos/thundra-io/thundra-lambda-agent-go/issues/7","id":375916881,"user":{"login":"serkan-ozal","id":3143425,"avatar_url":"https://avatars3.githubusercontent.com/u/3143425?v=4","gravatar_id":"","url":"https://api.github.com/users/serkan-ozal","html_url":"https://github.com/serkan-ozal","followers_url":"https://api.github.com/users/serkan-ozal/followers","following_url":"https://api.github.com/users/serkan-ozal/following{/other_user}","gists_url":"https://api.github.com/users/serkan-ozal/gists{/gist_id}","starred_url":"https://api.github.com/users/serkan-ozal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/serkan-ozal/subscriptions","organizations_url":"https://api.github.com/users/serkan-ozal/orgs","repos_url":"https://api.github.com/users/serkan-ozal/repos","events_url":"https://api.github.com/users/serkan-ozal/events{/privacy}","received_events_url":"https://api.github.com/users/serkan-ozal/received_events","type":"User","site_admin":false},"created_at":"2018-03-24T19:03:04Z","updated_at":"2018-03-24T19:03:04Z","author_association":"CONTRIBUTOR","body":"@retgits Thanks for reporting the issue.\r\n\r\n@efemedgy according to doc https://docs.thundra.io/docs/configuration, this https://github.com/thundra-io/thundra-lambda-agent-go/blob/7ac1749a22539ae3deed4b7bc6b7893c16e72a55/thundra/constants.go#L7 must be `thundra_apiKey` not `thundraApiKey`"}}
{"actor":{"display_login":"serkan-ozal"}}