Upload Control Causes Application to Quit

Answered Closed
0
0

I’ve been having an issue with an application that just quits unexpectedly when I upload a file, and I just found that I can replicate the issue with the WiseJ Demo Browser. Here’s how to replicate it:

  1. Download the Demo Browser from here:https://github.com/iceteagroup/wisej-demobrowser
  2. Run it and navigate to the Editors -> Upload section.
  3. Select the Choose Image button, choose an image.

At this point, the application shows the “Offline” message and just quits. This is the same thing that is happening in my application.

Update: This is related to the Upload control. Using it in 3.5.11 crashes my app and the demo app.

Please see the screenshot attached, and if so desired, download the Demo Browser and see for yourself.

Any ideas on how to fix this? I’ve been looking into it for about a week now and I’m glad to be able to replicate it with the Demo Browser… hopefully someone knows what’s going on here?

FYI here is what shows up in the browser console:

POST http://localhost:5000/postback.wx?res=1ecc44b470b75ce0&x=ewAiAGkAZAAiADoAIgBpAGQAXwAyADEANgAiAH0A net::ERR_CONNECTION_REFUSED
uploadFiles @ wisej.js?v=3.5.12.4:61787
sendFiles @ wisej.js?v=3.5.12.4:62181
_onChange @ wisej.js?v=3.5.12.4:62148
dispatchEvent @ qx.js?v=3.5.12.4:21674
dispatchEvent @ qx.js?v=3.5.12.4:18608
fireEvent @ qx.js?v=3.5.12.4:19042
(anonymous) @ qx.js?v=3.5.12.4:61099
(anonymous) @ qx.js?v=3.5.12.4:12948
(anonymous) @ qx.js?v=3.5.12.4:12688
wisej.js?v=3.5.12.4:70141 WebSocket connection to ‘ws://localhost:5000/ws.wx?url=http://localhost:5000/’ failed:
WisejCore.sendWebSocketRequest @ wisej.js?v=3.5.12.4:70141
WisejCore.sendRequest @ wisej.js?v=3.5.12.4:69972
WisejCore.processEventQueue @ wisej.js?v=3.5.12.4:69945
(anonymous) @ wisej.js?v=3.5.12.4:69903
qx.js?v=3.5.12.4:173740 058443 Wisej: WebSocket Error
process @ qx.js?v=3.5.12.4:173740
__log @ qx.js?v=3.5.12.4:15982
WisejQX.log @ wisej.js?v=3.5.12.4:73324
WisejCore.log @ wisej.js?v=3.5.12.4:70603
WisejCore.logError @ wisej.js?v=3.5.12.4:70557
ws.onerror @ wisej.js?v=3.5.12.4:70168
error
WisejCore.sendWebSocketRequest @ wisej.js?v=3.5.12.4:70166
WisejCore.sendRequest @ wisej.js?v=3.5.12.4:69972
WisejCore.processEventQueue @ wisej.js?v=3.5.12.4:69945
(anonymous) @ wisej.js?v=3.5.12.4:69903
setTimeout
WisejCore.processEventQueueAsync @ wisej.js?v=3.5.12.4:69901
WisejCore.performRequest @ wisej.js?v=3.5.12.4:69879
WisejCore.fireEvent @ wisej.js?v=3.5.12.4:71025
handler @ wisej.js?v=3.5.12.4:921
dispatchEvent @ qx.js?v=3.5.12.4:21674
dispatchEvent @ qx.js?v=3.5.12.4:18608
fireNonBubblingEvent @ qx.js?v=3.5.12.4:19075
fireDataEvent @ qx.js?v=3.5.12.4:19425
sendFiles @ wisej.js?v=3.5.12.4:62222
_onChange @ wisej.js?v=3.5.12.4:62148
dispatchEvent @ qx.js?v=3.5.12.4:21674
dispatchEvent @ qx.js?v=3.5.12.4:18608
fireEvent @ qx.js?v=3.5.12.4:19042
(anonymous) @ qx.js?v=3.5.12.4:61099
(anonymous) @ qx.js?v=3.5.12.4:12948
(anonymous) @ qx.js?v=3.5.12.4:12688
wisej.js?v=3.5.12.4:69595

Thanks in advance!

Lloyd Work

  • You must to post comments
Best Answer
0
0

Ok, I figured out the problem… and boy do I feel dumb. I was checking the functionality out in different browsers and didn’t realize I had Brave set up as my default browser to debug with. Brave locks down a lot of things and as it turns out, this was causing the issue. It was an easy fix – to turn off Brave’s “shield” option for the site – but if anyone else sees this, please know that a user’s browser option may interfere with certain functionality, especially if they have their browser options locked down.

Thanks for looking into this; you can consider it closed now since I figured out what was causing it.

  • Frank (ITG)
    Hi Lloyd, thanks for clarifying it! Best regards, Frank
  • You must to post comments
0
0

Hi Lloyd,

thanks for reporting this, we’ll investigate to see what’s happening.
In a first attempt I could not make the DemoBrowser at https://demo.wisej.net to fail.
Does it happen with all image files for you or just some?
If the latter, can you please send one to us (either here or to supportATwisej.com)

Thanks in advance,
Frank

  • Frank (ITG)
    PS: You might also want to try Wise.NET 3.5.12-preview2 that is available on nuget and currently in QA. Regards, Frank
  • You must to post comments
Showing 2 results