Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for WebAssembly
  4. Empty headers in WASM 6.6.2.
Forum Updated to NodeBB v4.3 + New Features

Empty headers in WASM 6.6.2.

Scheduled Pinned Locked Moved Unsolved Qt for WebAssembly
3 Posts 2 Posters 536 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.
  • monettesM Offline
    monettesM Offline
    monettes
    wrote on last edited by
    #1

    When I compile my app for WASM v6.5.2, all my network functions works perfectly. But when I compile for WASM v6.6.2, I get some random errors regarding empty request headers or String contains invalid code in request headers,...

    This is how I set all my headers:

        request.setRawHeader(QByteArray("Accept"), QByteArray("Application/json"));
        request.setRawHeader(QByteArray("X-API-Key"), globalData3.toUtf8());
        request.setRawHeader(QByteArray("Content-Type"), QByteArray("Application/json"));
    
    

    appWebTimeSlipAdmin.js:9 Uncaught TypeError: Failed to execute 'setRequestHeader' on 'XMLHttpRequest': String contains non ISO-8859-1 code point.
    at fetchXHR (appWebTimeSlipAdmin.js:9:227856)
    at performUncachedXhr (appWebTimeSlipAdmin.js:9:233711)
    at getRequest.onsuccess (appWebTimeSlipAdmin.js:9:231449)

    I get no errors when compiling for WASM 6.5.2.

    It works perfectly when I compile for MacOS 6.6.2.

    I'm getting this random set request header only when I compile for WASM 6.6.2.

    I had to rollback my application to 6.5.2. WASM 6.6.2 is unusable for me.

    1 Reply Last reply
    0
    • D Offline
      D Offline
      doumdi
      wrote on last edited by
      #2

      I have the exact same problem, C++ code for requests generates unusable headers (empty or non ISO-8859-1). Any way to fix this problem ?

      D 1 Reply Last reply
      0
      • D doumdi

        I have the exact same problem, C++ code for requests generates unusable headers (empty or non ISO-8859-1). Any way to fix this problem ?

        D Offline
        D Offline
        doumdi
        wrote on last edited by
        #3

        @doumdi said in Empty headers in WASM 6.6.2.:

        I have the exact same problem, C++ code for requests generates unusable headers (empty or non ISO-8859-1). Any way to fix this problem ?

        I think this might be fixed in the new release : https://bugreports.qt.io/browse/QTBUG-122893

        1 Reply Last reply
        0

        • Login

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