Skip to content

Commit 3ca62a6

Browse files
authored
Update notification-hubs-python-push-notification-tutorial.md
If the HubNamespace is created with Uppercase Letters (for eg: TestNamespace), the resulting connection string will not work directly, as the API throws 400 Code. the Endpoint string has to be in lowercase.
1 parent d31aa56 commit 3ca62a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

articles/notification-hubs/notification-hubs-python-push-notification-tutorial.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ class NotificationHub:
8989

9090
for part in parts:
9191
if part.startswith('Endpoint'):
92-
self.Endpoint = 'https' + part[11:]
92+
self.Endpoint = 'https' + part[11:].lower()
9393
if part.startswith('SharedAccessKeyName'):
9494
self.SasKeyName = part[20:]
9595
if part.startswith('SharedAccessKey'):

0 commit comments

Comments
 (0)