Open WatchMeCalculate opened 6 years ago
Exception gets caught and re raised in gui\esiFittings.py#L172 I just hit fetch fits again and it successfully worked. What's the philosophy on users seeing errors? Could just write traceback to logs and show a dialog to say try again?
What's the philosophy on users seeing errors?
Generally the user should see some kind of information on why the call failed. Maybe the status code, message, and a blurb that says try again.
There isn't any proper HTTP error handling for ESI yet - most of the time I spent on it was devoted to getting it to work correctly in the first place. The ESI post fit has some error handling, but generally just to tell the user if the fit was created or not. It's kind of half-assed.
There's also an exception handler thing that specifically looks for an invalid token error, and displays a custom error message. We could use this to capture known errors to display custom information, or default to a generic error (while printing out to log the actual error). See the ESIExceptionHandler
class.
That being said, we also have to be aware that there's ESI-specific errors, and literal HTTP request errors. I haven't looked into differentiating the two.
As for the error you got, it looks like an HTTP request timeout. This seems to happen occasionally with ESI when it goes down (for server downtime, general maintenance, etc).
Bug Report
Expected behavior:
Fetch ESI fits and have them listed.
Actual behavior:
During fetching fits, received Exception view
Detailed steps to reproduce:
Open ESI Fittings and fetch fits. It only happened to me once, and i've been attempting to reproduce it in various ways,
Release or development git branch? Please note the release version or commit hash:
Current master 2.0.2 something
Operating system and version (eg: Windows 10, OS X 10.9, OS X 10.11, Ubuntu 16.10):
Win 10
Other relevant information: