🎄 Happy Holidays! 🥳

Most of Solace is closed December 24–January 1 so our employees can spend time with their families. We will re-open Thursday, January 2, 2024. Please expect slower response times during this period and open a support ticket for anything needing immediate assistance.

Happy Holidays!

Please note: most of Solace is closed December 25–January 2, and will re-open Tuesday, January 3, 2023.

CONNECT_FAILED_ERROR : All hosts failed DNS resolution

tbhargava18
tbhargava18 Member Posts: 9 ✭✭
I am trying to establish connection from my nodejs app(angular) to solace and I am getting CONNECT_FAILED_ERROR : All hosts failed DNS resolution (error subcode 145). I am not sure what I am missing. I am able to connect to solace from my backend service using the same host and port details. From UI its giving me error

Answers

  • uherbst
    uherbst Member, Employee Posts: 130 Solace Employee

    Hi @tbhargava18 ,

    would you show us your connect details ?

    Thank you

    Uli

  • tbhargava18
    tbhargava18 Member Posts: 9 ✭✭

    I cannot share the exact details, but url looks something like below:


    url : tcps://abc.net:55443

    vpnName :abc_xyz

    Username and password

  • uherbst
    uherbst Member, Employee Posts: 130 Solace Employee

    Can you resolve abc.net from the system, where your application is running ?

    (If it is a pod in k8s: try to resolve abc.net from inside a shell in your pod).

  • tbhargava18
    tbhargava18 Member Posts: 9 ✭✭

    i am trying the connection from my local machine and I am able to resolve the host from my system.

    Also, I use the same details to connect from a backend service and it works. From UI it doesnt. When I open the solace dashboard using the address abc.net from my browser, I see the connection is not secure and ERR_CERT_AUTHORITY_INVALID. Could that be causing issue ?

  • Tamimi
    Tamimi Member, Administrator, Employee Posts: 541 admin
    edited February 22 #6

    Hey @tbhargava18 could you provide a code snippet on how you are attempting to connect to the broker?

    Side note, did you get the chance of checking the solace community angular github repo? Might be helpful to get ideas on how to use angular with solace

  • tbhargava18
    tbhargava18 Member Posts: 9 ✭✭

    Attached the code snippet

  • tbhargava18
    tbhargava18 Member Posts: 9 ✭✭

    I tried changing the protocol to use ws://abc.net:55443 and I see it trying to establish a connection but I now get "CONNECTION_ERROR" subCode 44.

  • ric
    ric Member Posts: 1

    Any solution for the above issue. I am getting the same issue