{"action":"created","issue":{"url":"https://api.github.com/repos/Azure/azure-event-hubs-go/issues/81","repository_url":"https://api.github.com/repos/Azure/azure-event-hubs-go","labels_url":"https://api.github.com/repos/Azure/azure-event-hubs-go/issues/81/labels{/name}","comments_url":"https://api.github.com/repos/Azure/azure-event-hubs-go/issues/81/comments","events_url":"https://api.github.com/repos/Azure/azure-event-hubs-go/issues/81/events","html_url":"https://github.com/Azure/azure-event-hubs-go/issues/81","id":389198645,"node_id":"MDU6SXNzdWUzODkxOTg2NDU=","number":81,"title":"Expired credentials","user":{"login":"fantyz","id":167806,"node_id":"MDQ6VXNlcjE2NzgwNg==","avatar_url":"https://avatars1.githubusercontent.com/u/167806?v=4","gravatar_id":"","url":"https://api.github.com/users/fantyz","html_url":"https://github.com/fantyz","followers_url":"https://api.github.com/users/fantyz/followers","following_url":"https://api.github.com/users/fantyz/following{/other_user}","gists_url":"https://api.github.com/users/fantyz/gists{/gist_id}","starred_url":"https://api.github.com/users/fantyz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fantyz/subscriptions","organizations_url":"https://api.github.com/users/fantyz/orgs","repos_url":"https://api.github.com/users/fantyz/repos","events_url":"https://api.github.com/users/fantyz/events{/privacy}","received_events_url":"https://api.github.com/users/fantyz/received_events","type":"User","site_admin":false},"labels":[{"id":829155308,"node_id":"MDU6TGFiZWw4MjkxNTUzMDg=","url":"https://api.github.com/repos/Azure/azure-event-hubs-go/labels/bug","name":"bug","color":"d73a4a","default":true}],"state":"open","locked":false,"assignee":{"login":"devigned","id":386473,"node_id":"MDQ6VXNlcjM4NjQ3Mw==","avatar_url":"https://avatars0.githubusercontent.com/u/386473?v=4","gravatar_id":"","url":"https://api.github.com/users/devigned","html_url":"https://github.com/devigned","followers_url":"https://api.github.com/users/devigned/followers","following_url":"https://api.github.com/users/devigned/following{/other_user}","gists_url":"https://api.github.com/users/devigned/gists{/gist_id}","starred_url":"https://api.github.com/users/devigned/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/devigned/subscriptions","organizations_url":"https://api.github.com/users/devigned/orgs","repos_url":"https://api.github.com/users/devigned/repos","events_url":"https://api.github.com/users/devigned/events{/privacy}","received_events_url":"https://api.github.com/users/devigned/received_events","type":"User","site_admin":false},"assignees":[{"login":"devigned","id":386473,"node_id":"MDQ6VXNlcjM4NjQ3Mw==","avatar_url":"https://avatars0.githubusercontent.com/u/386473?v=4","gravatar_id":"","url":"https://api.github.com/users/devigned","html_url":"https://github.com/devigned","followers_url":"https://api.github.com/users/devigned/followers","following_url":"https://api.github.com/users/devigned/following{/other_user}","gists_url":"https://api.github.com/users/devigned/gists{/gist_id}","starred_url":"https://api.github.com/users/devigned/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/devigned/subscriptions","organizations_url":"https://api.github.com/users/devigned/orgs","repos_url":"https://api.github.com/users/devigned/repos","events_url":"https://api.github.com/users/devigned/events{/privacy}","received_events_url":"https://api.github.com/users/devigned/received_events","type":"User","site_admin":false}],"milestone":null,"comments":11,"created_at":"2018-12-10T08:55:38Z","updated_at":"2018-12-19T14:37:41Z","closed_at":null,"author_association":"NONE","body":"Hi,\r\n\r\nWe're having issues with sending events to event hub. This particular sender sends events once a day. First time it runs, it works fine. 24 hour later we consistently get the error:  `link detached, reason: *Error{Condition: amqp:link:detach-forced, Description: Unauthorized access. 'Send' claim(s) are required to perform this operation. Resource: 'x.servicebus.windows.net/manifests'., Info: map[]}`.\r\n\r\nAny idea why this is happening and whether we're missing something or its a bug in the SDK?\r\n\r\nWe setup event hubs as follows:\r\n```\r\n// Setup SAS token based provider for EventHub client\r\ntpo := sas.TokenProviderWithKey(c.Azure.EventHubs.KeyName, c.Azure.EventHubs.KeyValue)\r\ntp, err := sas.NewTokenProvider(tpo)\r\nif err != nil {\r\n\tlog.Error(errors.Wrapf(err, \"Unable to create SAS token provider for EventHub\"))\r\n\tos.Exit(1)\r\n}\r\n\r\n// setup the EventHub client using the SAS token provider\r\neventHubClient, err := eventhub.NewHub(c.Azure.EventHubs.Namespace, c.Azure.EventHubs.ManifestsEventHub, tp)\r\nif err != nil {\r\n\tlog.Error(errors.Wrapf(err, \"Unable to create EventHub client\"))\r\n\tos.Exit(1)\r\n}\r\n```\r\n\r\n### Environment\r\n- OS: Docker scratch\r\n- Go version: `1.11.1`\r\n- Version of Library: `v0.4.0 (fbff7e5d87fa647a80ea5059107c7309ac391b6c)`"},"comment":{"url":"https://api.github.com/repos/Azure/azure-event-hubs-go/issues/comments/448617672","html_url":"https://github.com/Azure/azure-event-hubs-go/issues/81#issuecomment-448617672","issue_url":"https://api.github.com/repos/Azure/azure-event-hubs-go/issues/81","id":448617672,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0ODYxNzY3Mg==","user":{"login":"fantyz","id":167806,"node_id":"MDQ6VXNlcjE2NzgwNg==","avatar_url":"https://avatars1.githubusercontent.com/u/167806?v=4","gravatar_id":"","url":"https://api.github.com/users/fantyz","html_url":"https://github.com/fantyz","followers_url":"https://api.github.com/users/fantyz/followers","following_url":"https://api.github.com/users/fantyz/following{/other_user}","gists_url":"https://api.github.com/users/fantyz/gists{/gist_id}","starred_url":"https://api.github.com/users/fantyz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fantyz/subscriptions","organizations_url":"https://api.github.com/users/fantyz/orgs","repos_url":"https://api.github.com/users/fantyz/repos","events_url":"https://api.github.com/users/fantyz/events{/privacy}","received_events_url":"https://api.github.com/users/fantyz/received_events","type":"User","site_admin":false},"created_at":"2018-12-19T14:37:41Z","updated_at":"2018-12-19T14:37:41Z","author_association":"NONE","body":"Nope, it's still experimental. Waiting for it to become official in v1.12 before switching."}}
{"actor":{"display_login":"fantyz"}}