XMLHttpRequest Error when using wijmo.PrintDocument.print()

Posted by: joe on 13 July 2018, 6:58 am EST

  • Posted 13 July 2018, 6:58 am EST

    Hi, guys/gals,

    I’m using the very simple wijmo.PrintDocument class. It works perfectly fine on my localhost, but when we deploy to our server I get the following error…

    wijmo.min.js:13 [Deprecation] Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check https://xhr.spec.whatwg.org/.
    t.httpRequest @ wijmo.min.js:13
    e._close @ wijmo.min.js:13
    e.print @ wijmo.min.js:13
    print @ invoice_detail.js:123
    fn @ VM278:4
    e @ angular.js:27475
    $eval @ angular.js:18542
    $apply @ angular.js:18641
    (anonymous) @ angular.js:27480
    jg @ angular.js:3791
    d @ angular.js:3779
    4wijmo.min.js:13 Failed to load resource: the server responded with a status of 404 (Not Found)
    t.httpRequest @ wijmo.min.js:13
    e._close @ wijmo.min.js:13
    e.print @ wijmo.min.js:13
    print @ invoice_detail.js:123
    fn @ VM278:4
    e @ angular.js:27475
    $eval @ angular.js:18542
    $apply @ angular.js:18641
    (anonymous) @ angular.js:27480
    jg @ angular.js:3791
    d @ angular.js:3779
    

    First, is there a non-minified version of wijmo.js I can get to troubleshoot this further? Or is there a known issue here and we just need to configure our server differently? I’m concerned about the mention of deprecation for the synchronous operation. Is there a way to make the process asynchronous?

    As always, thanks for your support!

    Joe

  • Posted 15 July 2018, 10:31 pm EST

    Hi,

    We are sorry but we unable to replicate the issue at our end.

    We tried it on the Web server for chrome and IIS server but none of them caused any error.

    Please find the attached file which we used for testing purpose, please have a look at it and let us know if we are missing something to replicate the issue.

    RegardswijmoPrintDocTest.zip

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels