You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
with port 65536
Total destruction - a JS exception is thrown, the callback isn't called, and the rest of the widget doesn't run. Commenting out the newXMLHttpRequestWithError makes things die later, when getAndDecode is run.
The terminal console shows:
A JavaScript exception was thrown! (may not reach Haskell code)
SyntaxError: Failed to execute 'open' on 'XMLHttpRequest': Invalid URL
The text was updated successfully, but these errors were encountered:
meditans
added a commit
to obsidiansystems/chainweaver
that referenced
this issue
Feb 7, 2022
This is because that version has been created to explicitly mask the
errors on the js side, making them surface on the haskell side instead,
see:
reflex-frp/reflex-dom#369
While in this case the bug is not related to port numbers, I was
wondering if the core mechanism of not letting exceptions show up is the
same.
meditans
added a commit
to obsidiansystems/chainweaver
that referenced
this issue
Feb 7, 2022
This is because that version has been created to explicitly mask the
errors on the js side, making them surface on the haskell side instead,
see: reflex-frp/reflex-dom#369
While in this case the bug is not related to port numbers, I was
wondering if the core mechanism of not letting exceptions show up is the
same.
Reproducible example
ob run
Issue
Giving
xhrRequest
a url with a port number>= 2^16
makesnewXMLHttpRequestWithError
throw a JSException.with port 65535
newXMLHttpRequestWithError
's callback is called...twice?...with different results?...maybe Fix xhr response handlers getting called 3 times. #255 ?with port 65536
Total destruction - a JS exception is thrown, the callback isn't called, and the rest of the widget doesn't run. Commenting out the
newXMLHttpRequestWithError
makes things die later, whengetAndDecode
is run.The terminal console shows:
The text was updated successfully, but these errors were encountered: