Endpoint should be fully qualified endpoint (Parameter 'Endpoint') #13
Replies: 4 comments 2 replies
-
Hey! Look here for the list of supported hosts. I think I have seen this behavior with older SDK versions; try upgrading to the latest nuget version. Alternatively, you can use devopsifyme-local.servicebus.windows.net after adding it to the /etc/hosts pointing at 127.0.0.1. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the hint. I updated the nuget package to the latest version.
I changed host file to that this led to the certificate problem again. using that entry in the host file using the same endpoint as above. This leads to a unknown host exception anything that I missed? |
Beta Was this translation helpful? Give feedback.
-
Is it an option for you to upgrade to the latest Azure.Messaging.ServiceBus nuget, as it does not have this limitation requiring FQDN. Microsoft.Azure.ServiceBus that you are using at the moment is deprecated as of 11/2020- see https://www.nuget.org/packages/Microsoft.Azure.ServiceBus. If you can't upgrade, then let me know, maybe I need to tweak sth in the certificate generation script here: https://github.com/piotr-rojek/devopsifyme-sbemulator/blob/main/src/ServiceBusEmulator.Host/Dockerfile You can also generate your own server certificate that you would then trust, as described here https://github.com/piotr-rojek/devopsifyme-sbemulator/blob/main/docs/configuration.md#bring-your-own-certificate |
Beta Was this translation helpful? Give feedback.
-
Thanks for the hint. I indeed took an older example code. Using the newer library it was working fine. Thanks for your support here. |
Beta Was this translation helpful? Give feedback.
-
Hi. I have a console app to just connect to my local azure service bus emulator running in docker. I exported and installed the certificate as suggested but if I run the code I get some exceptions.
Innerexception:
System.Security.Authentication.AuthenticationException: The remote certificate is invalid according to the validation procedure: RemoteCertificateNameMismatch
at Microsoft.Azure.ServiceBus.Core.MessageSender.OnSendAsync(IList
1 messageList) at Microsoft.Azure.ServiceBus.RetryPolicy.RunOperation(Func
1 operation, TimeSpan operationTimeout)at Microsoft.Azure.ServiceBus.RetryPolicy.RunOperation(Func
1 operation, TimeSpan operationTimeout) at Microsoft.Azure.ServiceBus.Core.MessageSender.SendAsync(IList
1 messageList)Is it because I am using 127.0.0.1 as replacement for localhost? But with localhost I get the above error. What could be the reason here?
Thanks for any input.
the code I am using is pretty simple.
Beta Was this translation helpful? Give feedback.
All reactions