{"action":"closed","issue":{"url":"https://api.github.com/repos/MicrosoftDocs/azure-docs/issues/18501","repository_url":"https://api.github.com/repos/MicrosoftDocs/azure-docs","labels_url":"https://api.github.com/repos/MicrosoftDocs/azure-docs/issues/18501/labels{/name}","comments_url":"https://api.github.com/repos/MicrosoftDocs/azure-docs/issues/18501/comments","events_url":"https://api.github.com/repos/MicrosoftDocs/azure-docs/issues/18501/events","html_url":"https://github.com/MicrosoftDocs/azure-docs/issues/18501","id":378921086,"node_id":"MDU6SXNzdWUzNzg5MjEwODY=","number":18501,"title":"Following Microsoft Azure tutorial: Not Authorized Exception","user":{"login":"Siewen123","id":44881227,"node_id":"MDQ6VXNlcjQ0ODgxMjI3","avatar_url":"https://avatars1.githubusercontent.com/u/44881227?v=4","gravatar_id":"","url":"https://api.github.com/users/Siewen123","html_url":"https://github.com/Siewen123","followers_url":"https://api.github.com/users/Siewen123/followers","following_url":"https://api.github.com/users/Siewen123/following{/other_user}","gists_url":"https://api.github.com/users/Siewen123/gists{/gist_id}","starred_url":"https://api.github.com/users/Siewen123/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Siewen123/subscriptions","organizations_url":"https://api.github.com/users/Siewen123/orgs","repos_url":"https://api.github.com/users/Siewen123/repos","events_url":"https://api.github.com/users/Siewen123/events{/privacy}","received_events_url":"https://api.github.com/users/Siewen123/received_events","type":"User","site_admin":false},"labels":[{"id":836703193,"node_id":"MDU6TGFiZWw4MzY3MDMxOTM=","url":"https://api.github.com/repos/MicrosoftDocs/azure-docs/labels/cxp","name":"cxp","color":"bf1394","default":false},{"id":836703308,"node_id":"MDU6TGFiZWw4MzY3MDMzMDg=","url":"https://api.github.com/repos/MicrosoftDocs/azure-docs/labels/in-progress","name":"in-progress","color":"c1d9ff","default":false},{"id":646545994,"node_id":"MDU6TGFiZWw2NDY1NDU5OTQ=","url":"https://api.github.com/repos/MicrosoftDocs/azure-docs/labels/iot-hub/svc","name":"iot-hub/svc","color":"009000","default":false},{"id":853283851,"node_id":"MDU6TGFiZWw4NTMyODM4NTE=","url":"https://api.github.com/repos/MicrosoftDocs/azure-docs/labels/product-question","name":"product-question","color":"43e08a","default":false},{"id":836702742,"node_id":"MDU6TGFiZWw4MzY3MDI3NDI=","url":"https://api.github.com/repos/MicrosoftDocs/azure-docs/labels/triaged","name":"triaged","color":"0e8a16","default":false}],"state":"closed","locked":false,"assignee":{"login":"sergaz-msft","id":22173500,"node_id":"MDQ6VXNlcjIyMTczNTAw","avatar_url":"https://avatars1.githubusercontent.com/u/22173500?v=4","gravatar_id":"","url":"https://api.github.com/users/sergaz-msft","html_url":"https://github.com/sergaz-msft","followers_url":"https://api.github.com/users/sergaz-msft/followers","following_url":"https://api.github.com/users/sergaz-msft/following{/other_user}","gists_url":"https://api.github.com/users/sergaz-msft/gists{/gist_id}","starred_url":"https://api.github.com/users/sergaz-msft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sergaz-msft/subscriptions","organizations_url":"https://api.github.com/users/sergaz-msft/orgs","repos_url":"https://api.github.com/users/sergaz-msft/repos","events_url":"https://api.github.com/users/sergaz-msft/events{/privacy}","received_events_url":"https://api.github.com/users/sergaz-msft/received_events","type":"User","site_admin":false},"assignees":[{"login":"sergaz-msft","id":22173500,"node_id":"MDQ6VXNlcjIyMTczNTAw","avatar_url":"https://avatars1.githubusercontent.com/u/22173500?v=4","gravatar_id":"","url":"https://api.github.com/users/sergaz-msft","html_url":"https://github.com/sergaz-msft","followers_url":"https://api.github.com/users/sergaz-msft/followers","following_url":"https://api.github.com/users/sergaz-msft/following{/other_user}","gists_url":"https://api.github.com/users/sergaz-msft/gists{/gist_id}","starred_url":"https://api.github.com/users/sergaz-msft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sergaz-msft/subscriptions","organizations_url":"https://api.github.com/users/sergaz-msft/orgs","repos_url":"https://api.github.com/users/sergaz-msft/repos","events_url":"https://api.github.com/users/sergaz-msft/events{/privacy}","received_events_url":"https://api.github.com/users/sergaz-msft/received_events","type":"User","site_admin":false}],"milestone":null,"comments":9,"created_at":"2018-11-08T21:19:10Z","updated_at":"2018-11-21T00:03:05Z","closed_at":"2018-11-21T00:03:05Z","author_association":"NONE","body":"Hello all,\r\n\r\nI am currently following a Microsoft Azure guide on IoT Hub. \r\nhttps://docs.microsoft.com/en-us/azure/iot-hub/tutorial-routing\r\n\r\nAt the moment I am at the Routing messages tutorial.\r\n\r\nI have run the the tutorial twice, following the exact steps but I keep ending up with an Not Authorized Exception.\r\n\r\nI am pretty sure I have entered the correct device key, name and adress to my IoT hub.\r\n\r\nDoes anyone know what might be causing this?\r\n\r\nUnhandled Exception: Microsoft.Azure.Devices.Client.Exceptions.UnauthorizedException: CONNECT failed: RefusedNotAuthorized\r\n   at Microsoft.Azure.Devices.Client.InternalClient.<>c.<ApplyTimeout>b__62_2(Task t)\r\n   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot)\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at SimulatedDevice.Program.SendDeviceToCloudMessagesAsync() in D:\\IoTCloud\\Simulator\\Program.cs:line 74\r\n   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Threading.ThreadPoolWorkQueue.Dispatch()\r\n\r\n---\r\n#### Document Details\r\n\r\n⚠ *Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.*\r\n\r\n* ID: f233412c-4242-e9a6-e09d-c5b07775dd00\r\n* Version Independent ID: 3a940d2c-77bb-b8ff-8864-9fc6ef16c122\r\n* Content: [Configure message routing with Azure IoT Hub (.NET)](https://docs.microsoft.com/en-us/azure/iot-hub/tutorial-routing)\r\n* Content Source: [articles/iot-hub/tutorial-routing.md](https://github.com/Microsoft/azure-docs/blob/master/articles/iot-hub/tutorial-routing.md)\r\n* Service: **iot-hub**\r\n* GitHub Login: @robinsh\r\n* Microsoft Alias: **robinsh**"}}
{"actor":{"display_login":"sergaz-msft"}}