Skip to content

Commit 81e1c81

Browse files
authored
Added explicit info on the value of EVENT_HUB_NAME
After seeing this issue in Answers (https://learn.microsoft.com/en-us/answers/questions/1184327/how-to-fix-azure-eventhub-exceptions-authenticatio?page=1&orderby=helpful) and having a customer hit the exact same error today, I felt like this would be a beneficial add for the docs. ------- cc: @spelluru
1 parent 76502f9 commit 81e1c81

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

articles/event-hubs/event-hubs-python-get-started-send.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,8 @@ In this section, create a Python script to send events to the event hub that you
106106
* `EVENT_HUB_CONNECTION_STR`
107107
* `EVENT_HUB_NAME`
108108

109+
Make sure 'EVENT_HUB_NAME' is the name of the Event Hub and not the Event Hub Namespace. If this value is incorrect, you will receive the error code "CBS Token authentication failed."
110+
109111
```python
110112
import asyncio
111113

@@ -366,4 +368,4 @@ If you don't see events in the receiver window or the code reports an error, try
366368

367369
In this quickstart, you've sent and received events asynchronously. To learn how to send and receive events synchronously, go to the [GitHub sync_samples page](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/eventhub/azure-eventhub/samples/sync_samples).
368370

369-
For all the samples (both synchronous and asynchronous) on GitHub, go to [Azure Event Hubs client library for Python samples](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/eventhub/azure-eventhub/samples).
371+
For all the samples (both synchronous and asynchronous) on GitHub, go to [Azure Event Hubs client library for Python samples](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/eventhub/azure-eventhub/samples).

0 commit comments

Comments
 (0)