Azure-docs: Double trailing slash in endpoint

Created on 18 Jul 2020  Â·  4Comments  Â·  Source: MicrosoftDocs/azure-docs

The endpoint printed with a trailing slash to the console which is pasted to the read-d2c-messages sample project doesn't work because it adds a trailing slashes again.

E.g:

The messaging entity 'sb://ihsuprod.......ce.servicebus.windows.net//ioth........56605/$management' could not be found. To know more visit https://aka.ms/sbResourceMgrExceptions.

So in the code should delete the trailing slash:

// If you have access to the Event Hub-compatible connection string from the Azure portal, then
// you can skip the Azure CLI commands above, and assign the connection string directly here.
const connectionString = `Endpoint=${eventHubsCompatibleEndpoint}/;EntityPath=${eventHubsCompatiblePath};SharedAccessKeyName=service;SharedAccessKey=${iotHubSasKey}`;

Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Pri2 cxp doc-bug iot-husvc triaged

All 4 comments

@icebob Thanks for the question! We are investigating and will update you shortly.

@icebob Thanks for bringing this to our notice. Just wanted confirm once, are you able to successfully complete the rest of steps once you remove the trailing slash at the endpoint?

Yes, after removing slash, all other steps was good and example worked properly.

@icebob Thanks for the confirmation. I have modified the code accordingly. Changes will be merged after peer review.
We will now proceed to close this thread. If there are further questions regarding this matter, please tag me in your reply. We will gladly continue the discussion and we will reopen the issue.

Was this page helpful?
0 / 5 - 0 ratings