Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-86359

connectToEndpoint fails to connect to endpoint returned by requestEndpoints

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Invalid
    • Affects Version/s: 5.15.0
    • Fix Version/s: None
    • Component/s: OpcUA
    • Labels:
      None
    • Environment:
      Ubuntu Linux 16.04
      gcc 5
      Qt 5.15.0
    • Platform/s:
      Linux/X11

      Description

      QOpcUaClient::requestEndpoints() can return endpoints that have a "/" at the end of their URL (for example "opc.tcp://127.0.0.1:15701/"), when that happens calling  QOpcUaClient::connectToEndpoint() on a returned endpoint fails with the following errors:

      [2020-08-31 18:15:19.470 (UTC-0400)] error/client Opening the TCP socket failed

      [2020-08-31 18:15:19.470 (UTC-0400)] error/client Couldn't connect the client to a TCP secure channelqt.opcua.plugins.open62541: Open62541: Failed to connect

      Changing the endpoint URL to the same address without a "/" at the end (in this case to "opc.tcp://127.0.0.1:15701") gives a successful connection.

      Backend I was using when I found this bug is Open62541.

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            fmeerkoetter Frank Meerkötter
            Reporter:
            vivaladav Davide Coppola
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes