Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. [SOLVED] JSON message object is missing the id property

[SOLVED] JSON message object is missing the id property

Scheduled Pinned Locked Moved General and Desktop
qwebchannelqwebsocketserve
2 Posts 1 Posters 2.0k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    F Offline
    fant
    wrote on 8 Oct 2015, 21:13 last edited by fant 10 Sept 2015, 10:28
    #1

    Hi,
    I have a problem with QWebChannel. When I start the Qt 5.5 example "standalone" (Qt WebChannel Standalone Example) and load file:///C:/Qt/5.5/Examples/Qt-5.5/webchannel/build-standalone-Desktop_Qt_5_5_0_MinGW_32bit-Debug/index.html?webChannelBaseUrl=ws://localhost:12345 in web browser (Firefox), I only get a message inside the output box of Qt Creator:

    JSON message object is missing the id property: {
    "type": 3
    }

    Also I tried an own example where the html page is loaded on server (Xampp). The connection between server and client is successful, in each case. But the QObject can not be transfered.
    Does anyone how I could fix this?

    P.S.:
    I forget, there are some outputs before this error message:

    qt.network.ssl: QSslSocket: cannot resolve SSL_set_psk_client_callback
    qt.network.ssl: QSslSocket: cannot resolve TLSv1_1_client_method
    qt.network.ssl: QSslSocket: cannot resolve TLSv1_2_client_method
    qt.network.ssl: QSslSocket: cannot resolve TLSv1_1_server_method
    qt.network.ssl: QSslSocket: cannot resolve TLSv1_2_server_method
    qt.network.ssl: QSslSocket: cannot resolve SSL_select_next_proto
    qt.network.ssl: QSslSocket: cannot resolve SSL_CTX_set_next_proto_select_cb
    qt.network.ssl: QSslSocket: cannot resolve SSL_get0_next_proto_negotiated

    But I don't think there is a context to this JSON error.

    1 Reply Last reply
    0
    • F Offline
      F Offline
      fant
      wrote on 9 Oct 2015, 10:24 last edited by
      #2

      I'm sorry, didn't realize that using deprecated qwebchannel.js ... problem solved.

      1 Reply Last reply
      0

      1/2

      8 Oct 2015, 21:13

      • Login

      • Login or register to search.
      1 out of 2
      • First post
        1/2
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved