time-out when sending results leads to SUCESS
during the process of sending the results, it might happen that the server can't be reached. This results in an time-out error that is unfortunately not caught correctly:
A solution is to implement this differently like proposed here https://stackoverflow.com/questions/10458632/try-catch-doesnt-work-with-xmlhttprequest
I have seen a related issue, where I have invalid ID as the test name, the user clicks "send results", the UI displays that it was successful, but nothing was written to disk. There was no indication that the results failed to write to disk correctly.
@cifkao do you remember what the simple fix was for this?
I'm not sure there was a simple fix. I suspect this has something to do with the fact that synchronous XmlHttpRequests are deprecated. It would probably be a good idea to switch to the Fetch API.